diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-08-02 01:38:09 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-08-02 01:38:09 -0600 |
| commit | fa0304793a4525db68cb53b527d695bfa2c65966 (patch) | |
| tree | 1d10c2cd030e34324fbebe1f093588de2e310dee /ui/main_window.py | |
| parent | a3aa1df99df8f413cac2ba6020b7cd0dec6d2390 (diff) | |
Remove Debug window feature
Debug button, DebugWindow, and the stdout/stderr tee (core/debug_log.py)
weren't wanted. developer_mode toggle stays — still gates device
Simulation Mode checkboxes and verbose terminal logging.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'ui/main_window.py')
| -rw-r--r-- | ui/main_window.py | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/ui/main_window.py b/ui/main_window.py index 01e0505..1ee8b7f 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -108,7 +108,6 @@ from ui.profile_manager_ui import ProfileButton from ui.windows.config_window import ConfigWindow from ui.windows.plot_window import build_default_layout from ui.windows.settings_window import SettingsWindow -from ui.windows.debug_window import DebugWindow from plugins.plugin_manager import PluginManager from plugins.base_plugin import PluginContext @@ -133,7 +132,6 @@ class MainWindow(QMainWindow): self._elapsed = 0 self._win_config = None self._win_settings = None - self._win_debug = None _plugins_dir = os.path.join(os.path.dirname(os.path.dirname( os.path.abspath(__file__))), "plugins") @@ -254,12 +252,6 @@ class MainWindow(QMainWindow): set_btn.clicked.connect(lambda c: self._open_settings()) tb.addWidget(set_btn); self._btn_settings = set_btn - debug_btn = QPushButton("🐞 Debug") - debug_btn.setObjectName("toolbarSectionBtn"); debug_btn.setCheckable(True) - debug_btn.clicked.connect(lambda c: self._open_debug()) - tb.addWidget(debug_btn); self._btn_debug = debug_btn - debug_btn.setVisible(False) # shown/hidden by _update_debug_btn_visibility per developer-mode setting - # ── Central ─────────────────────────────────────────────────────── central = QWidget(); self.setCentralWidget(central) @@ -500,12 +492,6 @@ class MainWindow(QMainWindow): self._win_config.tabs.setCurrentIndex(tab) self._show_win(self._win_config, "right") - def _open_debug(self): - if self._win_debug is None: - self._win_debug = DebugWindow(self) - self._win_debug.closed.connect(lambda: self._btn_debug.setChecked(False)) - self._show_win(self._win_debug, "right") - def _on_config_closed(self): self._act_devices.setChecked(False) self._act_channels.setChecked(False) @@ -721,16 +707,6 @@ class MainWindow(QMainWindow): level = logging.DEBUG if enabled else logging.WARNING logging.getLogger().setLevel(level) set_developer_mode(enabled) - self._update_debug_btn_visibility() - - def _update_debug_btn_visibility(self): - from core.app_settings import is_developer_mode - on = is_developer_mode() - self._btn_debug.setVisible(on) - if not on: - self._btn_debug.setChecked(False) - if self._win_debug: - self._win_debug.hide() def _on_settings(self, cfg: dict): self._settings.update(cfg) @@ -744,7 +720,7 @@ class MainWindow(QMainWindow): self._time_lbl.setText(f"{h:02d}:{m:02d}:{s:02d}") def closeEvent(self, event): - for w in (self._win_config, self._win_settings, self._win_debug): + for w in (self._win_config, self._win_settings): if w: w.close() for plugin in list(self._plugin_mgr.get_loaded()): try: |
