Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
0b815a89 by cal0pteryx at 2026-04-27T22:56:16+02:00
fix: Don't allow hiding title bar on WIndows and macOS

Fixes #12668

- - - - -


2 changed files:

- gajim/gtk/main.py
- gajim/gtk/preference/app.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -383,6 +383,8 @@ def _add_actions(self) -> None:
             self.add_action(act)
 
     def _add_settings_actions(self) -> None:
+        if sys.platform in ("win32", "darwin"):
+            return
         action = app.settings.create_action("show_header_bar")
         action.simple_bind_property(self._header_bar, "visible")
         self.add_action(action)


=====================================
gajim/gtk/preference/app.py
=====================================
@@ -93,7 +93,7 @@ def __init__(self) -> None:
                 SettingType.CONFIG,
                 "show_header_bar",
                 desc=_("Show the window’s title bar"),
-                enabled_func=lambda: sys.platform != "win32",
+                enabled_func=lambda: sys.platform not in ("win32", "darwin"),
             ),
         ]
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0b815a89d680bb2feb817a25f0684c562e0d9c69

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0b815a89d680bb2feb817a25f0684c562e0d9c69
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