Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
764cb1cf
by lovetox at 2022-05-01T20:26:14+02:00
2 changed files:
Changes:
| ... | ... | @@ -98,6 +98,7 @@ def _on_key_press(self, |
| 98 | 98 | |
| 99 | 99 | def _on_destroy(self, _widget: AccountsWindow) -> None:
|
| 100 | 100 | self._check_relogin()
|
| 101 | + app.check_finalize(self)
|
|
| 101 | 102 | |
| 102 | 103 | def update_account_label(self, account: str) -> None:
|
| 103 | 104 | self._accounts[account].update_account_label()
|
| ... | ... | @@ -83,6 +83,10 @@ def __init__(self, |
| 83 | 83 | |
| 84 | 84 | self.show_all()
|
| 85 | 85 | self.connect_after('key-press-event', self.on_key_press)
|
| 86 | + self.connect_after('destroy', self.__on_destroy)
|
|
| 87 | + |
|
| 88 | + def __on_destroy(self, widget: SettingsDialog) -> None:
|
|
| 89 | + app.check_finalize(self)
|
|
| 86 | 90 | |
| 87 | 91 | def on_key_press(self, _widget: Gtk.Widget, event: Gdk.EventKey) -> None:
|
| 88 | 92 | if event.keyval == Gdk.KEY_Escape:
|