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")