mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 04:50:37 +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
@@ -405,6 +405,7 @@ class ServerModelManager:
|
||||
|
||||
if show_dialog:
|
||||
dialog = ExceptionDialog(self.controller, dialogs.load_error_lan)
|
||||
dialog.show_all()
|
||||
dialog.run()
|
||||
|
||||
def _cleanup_on_failure(self, show_dialog: bool = True) -> None:
|
||||
@@ -421,6 +422,7 @@ class ServerModelManager:
|
||||
if show_dialog:
|
||||
dialog = ExceptionDialog(self.controller, server_timeout)
|
||||
dialog.set_secondary_text(kb.DZG_006)
|
||||
dialog.show_all()
|
||||
dialog.run()
|
||||
|
||||
def _push_data(self, data: list[Any]) -> None:
|
||||
|
||||
Reference in new issue
Block a user