mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: draw dialog outside of init
This commit is contained in:
1 parent
ec004aad5d
commit
e7ff025605
8 files changed
+10
-3
No files matched your search
@@ -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")
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user