I-Dream-in-Code / kde-arch-update-plasmoid

30 stars 9 forks source link

Autohide icon in systemtray #5

Closed ghost closed 6 years ago

ghost commented 6 years ago

Is it possible to have icon hidden in systemtray when no updates available? Currently icon is always shown when I choose "Auto" setting.

I-Dream-in-Code commented 6 years ago

I can look into it.

Right now I'm finally finishing aur support

Xabre666 commented 6 years ago

This is a snippet from Discover's update notifier plasmoid.

Plasmoid.status: { switch (DiscoverNotifier.state) { case DiscoverNotifier.NoUpdates: return PlasmaCore.Types.PassiveStatus; case DiscoverNotifier.NormalUpdates: case DiscoverNotifier.SecurityUpdates: return PlasmaCore.Types.ActiveStatus; }

I think it can be easily adopted here for the same purpose.

I-Dream-in-Code commented 6 years ago

I tried implementing it and it didn't work.

I also tried adding visible: main.updatesPending > 0 which didn't work either

I-Dream-in-Code commented 6 years ago

Feel free to fork it and I'll merge a patch in

I-Dream-in-Code commented 6 years ago

@naraesk when i click panel settings it just gives me auto-hide but no automatic

can you walk me through how to enable it?

I-Dream-in-Code commented 6 years ago

@naraesk is it a specific package I'm missing?

naraesk commented 6 years ago

I assume you are in the wrong settings window. system panel has its own settings. Right click on the system tray (not an application icon, but e.g. on the small arrow) and open settings. There you can set the visibility of each icon in system tray.

I-Dream-in-Code commented 6 years ago

@naraesk Oh I get it now.

I had it as it's own widget versus in the system tray