Philipp Hörist pushed to branch master at gajim / gajim
Commits:
764cb1cf by lovetox at 2022-05-01T20:26:14+02:00
perf: Add more finalize checks
- - - - -
2 changed files:
- gajim/gtk/accounts.py
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/accounts.py
=====================================
@@ -98,6 +98,7 @@ def _on_key_press(self,
def _on_destroy(self, _widget: AccountsWindow) -> None:
self._check_relogin()
+ app.check_finalize(self)
def update_account_label(self, account: str) -> None:
self._accounts[account].update_account_label()
=====================================
gajim/gtk/settings.py
=====================================
@@ -83,6 +83,10 @@ def __init__(self,
self.show_all()
self.connect_after('key-press-event', self.on_key_press)
+ self.connect_after('destroy', self.__on_destroy)
+
+ def __on_destroy(self, widget: SettingsDialog) -> None:
+ app.check_finalize(self)
def on_key_press(self, _widget: Gtk.Widget, event: Gdk.EventKey) -> None:
if event.keyval == Gdk.KEY_Escape:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/764cb1cf3776a4844e8476e6bb2d8b4bf0cd7fc1
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/764cb1cf3776a4844e8476e6bb2d8b4bf0cd7fc1
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits