nielsvm / kde-plasma-applet-menupager

Switch between virtual desktops using a menu
Other
1 stars 1 forks source link

PlasmaExtras.Highlight is not a type #1

Open tvvoty opened 10 months ago

tvvoty commented 10 months ago

The plugin wouldn't work throwing something along the lines of "Sorry. Error. PlasmaExtras.Highlight is not a type. /home/USER/.local/share/plasma/plasmoids/org.nielsvm.plasma.menupager/contents/ui/main.qml" or something like that. It's probably just a 5.24.7 (and older) version problem, since I tried it on my laptop with a newer plasma and it worked fine. So it probably doesn't need fixing since older versions aren't officially supported and older plasma versions will soon be deprecated for the most part, but case anybody still runs an older version (for example Kubuntu LTS like me) and comes here looking for a solution, you can fix it by deleting this block of code

property Item delegateHighlight: PlasmaExtras.Highlight {
            id: delegateHighlight
            parent: null
            width: parent ? parent.width : undefined
            height: parent ? parent.height : undefined
            hovered: parent && parent.containsMouse
            z: -1 // raise to prevent tinted font color.
        }

in the file /home/USER/.local/share/plasma/plasmoids/org.nielsvm.plasma.menupager/contents/ui/main.qml

nielsvm commented 3 months ago

@tvvoty I think this is indeed caused by running the Plasma 6 version on Plasma 5.

Have you tried running the 0.1 release?

Attached for convenience: kde-plasma-applet-menupager-0.1.tar.gz

tvvoty commented 3 months ago

@nielsvm Hello! It's been a while, so I don't remember all the details, but the version of Kubuntu where the error appears is 22.04, and the one it did work on was most probably 23.10. So both weren't plasma 6. metadata.desktop says "X-KDE-PluginInfo-Version=0.1" so I guess it's the same version as the one you linked? I'm not 100% sure how I installed it but I think I probably downloaded the release from the Kubuntu widget download application? At least the app shows it as installed and I assume it probably wouldn't say that if I installed it mannually.