Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c44aea01 by Philipp Hörist at 2026-01-06T22:27:31+01:00
cfix: Don't fail to quit Gajim
When there are no accounts added, the cleanup of the QuitDialog failed
because it could not anymore write the windows size to settings
- - - - -
1 changed file:
- gajim/gtk/quit.py
Changes:
=====================================
gajim/gtk/quit.py
=====================================
@@ -7,6 +7,7 @@
from gi.repository import Gtk
from gajim.common import app
+from gajim.common.helpers import idle_add_once
from gajim.common.i18n import _
from gajim.gtk.builder import get_builder
@@ -45,7 +46,10 @@ def _on_button_clicked(self, button: Gtk.Button) -> None:
elif action == "hide":
app.window.hide_window()
elif action == "quit":
- app.app.start_shutdown()
+ # Call with idle because closing the Quit Dialog
+ # writes window size to settings and this can only happen
+ # when the CoreApplicaton shutdown was not called first
+ idle_add_once(app.app.start_shutdown)
self.close()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c44aea012c556517735f1323319ff3fc7347dfc3
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c44aea012c556517735f1323319ff3fc7347dfc3
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]