Support crash logging in CLI code

This commit is contained in:
Mykola Grymalyuk
2023-05-30 15:42:17 -06:00
parent 47be068aaf
commit 831495923a
4 changed files with 9 additions and 1 deletions

View File

@@ -52,6 +52,10 @@ class EntryPoint:
patches = sys_patch_detect.DetectRootPatch(self.constants.computer.real_model, self.constants).detect_patch_set()
logging.info(f"Entry point set: {entry.__name__}")
# Normally set by main.py, but transitions from CLI mode may not have this set
self.constants.gui_mode = True
self.frame: wx.Frame = entry(
None,
title=f"{self.constants.patcher_name} ({self.constants.patcher_version})",