fix: draw dialog outside of init

This commit is contained in:
aclist committed 2026-08-20 14:05:44 +09:00
1 parent ec004aad5d
commit e7ff025605
8 files changed
+10 -3

No files matched your search

+1
View File
@@ -430,6 +430,7 @@ class Options(ScrollableMixin, Gtk.ScrolledWindow): # type: ignore
# NOTE: re-check in case file was removed by user between runs
if prefs.paths.config.is_file() is False:
dialog = ExceptionDialog(self.controller, strings.config_not_found)
dialog.show_all()
dialog.run()
raise OSError(f"Config file '{prefs.paths.config}' not found")
+1
View File
@@ -231,6 +231,7 @@ class PreConnectionAssistant(Gtk.Box):
def _on_debug_clicked(self, button: Gtk.Button) -> None:
args = self.controller.get_debug_args()
d = DebugDialog(self.controller, args)
d.show_all()
d.run()
def _on_ok_clicked(self, button: Gtk.Button) -> None: