sigh
This commit is contained in:
@@ -326,8 +326,20 @@ class AppController:
|
|||||||
'_inject_preview': '_inject_preview',
|
'_inject_preview': '_inject_preview',
|
||||||
'_show_inject_modal': '_show_inject_modal'
|
'_show_inject_modal': '_show_inject_modal'
|
||||||
})
|
})
|
||||||
|
self.perf_monitor = performance_monitor.get_monitor()
|
||||||
|
self._perf_profiling_enabled = False
|
||||||
self._init_actions()
|
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:
|
def _update_inject_preview(self) -> None:
|
||||||
"""Updates the preview content based on the selected file and injection mode."""
|
"""Updates the preview content based on the selected file and injection mode."""
|
||||||
if not self._inject_file_path:
|
if not self._inject_file_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user