From b5398ec5a8a0aee165502240825e1cdf4cabb602 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 7 Mar 2026 14:15:21 -0500 Subject: [PATCH] sigh --- src/app_controller.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app_controller.py b/src/app_controller.py index 141d3cf..109d076 100644 --- a/src/app_controller.py +++ b/src/app_controller.py @@ -326,8 +326,20 @@ class AppController: '_inject_preview': '_inject_preview', '_show_inject_modal': '_show_inject_modal' }) + self.perf_monitor = performance_monitor.get_monitor() + self._perf_profiling_enabled = False self._init_actions() + @property + def perf_profiling_enabled(self) -> bool: + return self._perf_profiling_enabled + + @perf_profiling_enabled.setter + def perf_profiling_enabled(self, value: bool) -> None: + self._perf_profiling_enabled = value + if hasattr(self, 'perf_monitor'): + self.perf_monitor.enabled = value + def _update_inject_preview(self) -> None: """Updates the preview content based on the selected file and injection mode.""" if not self._inject_file_path: