feat: Add settings button and dialog for configuration management
This commit is contained in:
parent
8e97f85c64
commit
c97301728c
1 changed files with 12 additions and 0 deletions
|
|
@ -462,6 +462,11 @@ class MainWindow(QMainWindow):
|
|||
about_action.setToolTip("About WebDrop Bridge")
|
||||
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_updates_action = toolbar.addAction("🔄")
|
||||
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)
|
||||
|
||||
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:
|
||||
"""Navigate to the home (start) URL."""
|
||||
home_url = self.config.webapp_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue