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
@@ -178,6 +178,7 @@ class ConfigManager:
|
||||
logger.critical(e)
|
||||
trace = traceback.format_exc()
|
||||
dialog = ExceptionDialog(self.controller, trace)
|
||||
dialog.show_all()
|
||||
dialog.run()
|
||||
raise e
|
||||
|
||||
|
||||
@@ -303,6 +303,7 @@ class ConnectionManager:
|
||||
def _server_timeout(self) -> None:
|
||||
dialog = ExceptionDialog(self.controller, server_timeout)
|
||||
dialog.set_secondary_text(kb.DZG_006)
|
||||
dialog.show_all()
|
||||
dialog.run()
|
||||
|
||||
def get_debug_args(self) -> str:
|
||||
|
||||
@@ -20,11 +20,9 @@ from dzgui.const.constants import (
|
||||
from dzgui.const.enum import Preferences
|
||||
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
|
||||
from dzgui.model.model_factory import FastInsertListStore, ModelFactory
|
||||
from dzgui.strings import dialogs, kb
|
||||
from dzgui.strings import dialogs
|
||||
from dzgui.util.format import format_mods
|
||||
from dzgui.util.strings import server_timeout
|
||||
from dzgui.util.symlink import rebuild_symlinks
|
||||
from dzgui.views.dialogs.generic import ExceptionDialog
|
||||
|
||||
|
||||
import dzgui.api.pefile as PeFile
|
||||
|
||||
@@ -64,4 +64,5 @@ class UpdateManager:
|
||||
|
||||
def _on_update_failure(self, msg: str) -> None:
|
||||
dialog = ExceptionDialog(self.controller, msg)
|
||||
dialog.show_all()
|
||||
dialog.run()
|
||||
Reference in new issue
Block a user