Private
Public Access
0
0

fix(gui_2): use str sentinel not bytes in _capture_workspace_profile

This commit is contained in:
2026-06-05 19:24:12 -04:00
parent 7a0ed74b5c
commit eb0bd39327
5 changed files with 177 additions and 15 deletions
+9 -9
View File
@@ -598,15 +598,15 @@ class App:
finally:
self._is_applying_snapshot = False
def _capture_workspace_profile(self, name: str) -> models.WorkspaceProfile:
if not getattr(self, "_ini_capture_ready", False):
self._ini_capture_ready = True
ini = b""
else:
try:
ini = imgui.save_ini_settings_to_memory()
except Exception:
ini = b""
def _capture_workspace_profile(self, name: str) -> models.WorkspaceProfile:
if not getattr(self, "_ini_capture_ready", False):
self._ini_capture_ready = True
ini = ""
else:
try:
ini = str(imgui.save_ini_settings_to_memory() or "")
except Exception:
ini = ""
panel_states = {
"ui_separate_context_preview": getattr(self, "ui_separate_context_preview", False),
"ui_separate_message_panel": getattr(self, "ui_separate_message_panel", False),