Philipp Hörist pushed to branch master at gajim / gajim


Commits:
51a68750 by Philipp Hörist at 2025-01-30T22:53:40+01:00
imprv: StatusIcon: Consider suspended state on show/hide action

- - - - -


1 changed file:

- gajim/gtk/status_icon.py


Changes:

=====================================
gajim/gtk/status_icon.py
=====================================
@@ -127,10 +127,10 @@ def _on_sounds_mute() -> None:
         app.settings.set("sounds_on", not current_state)
 
     def _on_show_hide(self) -> None:
-        if app.window.is_visible():
-            app.window.hide_window()
-        else:
+        if not app.window.is_visible() or app.window.is_suspended():
             app.window.show_window()
+        else:
+            app.window.hide_window()
 
     @staticmethod
     def _on_preferences() -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/51a68750bdbf293023a13428a25f1e7b270d4223

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/51a68750bdbf293023a13428a25f1e7b270d4223
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to