Skip to content

applets/weather: Fix system tray detection

Ismael Asensio requested to merge work/iasensio/weather-fix-systray into master

The applet needs to check weather it is in the system tray to avoid showing a text label beside the icon.

As the property is a flag, it needs a bitwise operator instead of a plain equality. This also adds a second check (in practice both are true, but better safe than sorry)

Additionally, also hide the option completely instead of showing it disabled, which can be confusing.

BEFORE AFTER
weather-systray-before weather-systray-after
weather-settings-before weather-settings-after

Merge request reports

Loading