From c4691a54b095e35f69bb4d74c3553ca6b9967850 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 6 Jun 2026 01:05:00 -0400 Subject: [PATCH] fking python --- src/gui_2.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gui_2.py b/src/gui_2.py index 68a0a46c..24c405e6 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -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 + 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 = "" - 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),