feat: Add settings button and dialog for configuration management

This commit is contained in:
claudi 2026-01-30 11:31:52 +01:00
parent 8e97f85c64
commit c97301728c

View file

@ -462,6 +462,11 @@ class MainWindow(QMainWindow):
about_action.setToolTip("About WebDrop Bridge") about_action.setToolTip("About WebDrop Bridge")
about_action.triggered.connect(self._show_about_dialog) about_action.triggered.connect(self._show_about_dialog)
# Settings button on the right
settings_action = toolbar.addAction("⚙️")
settings_action.setToolTip("Settings")
settings_action.triggered.connect(self._show_settings_dialog)
# Check for Updates button on the right # Check for Updates button on the right
check_updates_action = toolbar.addAction("🔄") check_updates_action = toolbar.addAction("🔄")
check_updates_action.setToolTip("Check for Updates") check_updates_action.setToolTip("Check for Updates")
@ -523,6 +528,13 @@ class MainWindow(QMainWindow):
QMessageBox.about(self, f"About {self.config.app_name}", about_text) QMessageBox.about(self, f"About {self.config.app_name}", about_text)
def _show_settings_dialog(self) -> None:
"""Show Settings dialog for configuration management."""
from webdrop_bridge.ui.settings_dialog import SettingsDialog
dialog = SettingsDialog(self.config, self)
dialog.exec()
def _navigate_home(self) -> None: def _navigate_home(self) -> None:
"""Navigate to the home (start) URL.""" """Navigate to the home (start) URL."""
home_url = self.config.webapp_url home_url = self.config.webapp_url