Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4d053059 by Philipp Hörist at 2025-07-26T10:08:12+02:00
imprv: Main: Hide chat on escape
Fixes #12381
- - - - -
286806a8 by Philipp Hörist at 2025-07-26T10:09:25+02:00
imprv: Main: Make Escape close the window independent of chat setting
- - - - -
1 changed file:
- gajim/gtk/main.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -513,7 +513,12 @@ def _on_action(
self._chat_page.remove_chat(
control.contact.account, control.contact.jid
)
- return None
+ else:
+ workspace_id = self.get_active_workspace()
+ if workspace_id is not None:
+ app.window.activate_workspace(workspace_id)
+
+ return None
elif action_name == "close-chat":
self._chat_page.remove_chat(
@@ -521,7 +526,7 @@ def _on_action(
)
return None
- if action_name == "escape" and app.settings.get("escape_key_closes"):
+ if action_name == "escape":
self.close()
elif action_name == "restore-chat":
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/6fbf5b664287307d0fa141443ecec80abcd3fdda...286806a8b0e0c04e5a9f993057b731e9f3851051
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/6fbf5b664287307d0fa141443ecec80abcd3fdda...286806a8b0e0c04e5a9f993057b731e9f3851051
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]