Bring Configure Window to Top when Opened from System Tray

- Previously the window could get hidden behind other app windows when
  user clicked configure from the system tray
This commit is contained in:
Debanjum Singh Solanky
2022-08-20 23:38:43 +03:00
parent 1c122a8a91
commit 8098b8c3a8
2 changed files with 9 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ def create_system_tray(gui: QtWidgets.QApplication, main_window: QtWidgets.QMain
menu = QtWidgets.QMenu()
menu_actions = [
('Search', lambda: webbrowser.open(f'http://{state.host}:{state.port}/')),
('Configure', main_window.show),
('Configure', main_window.show_on_top),
('Quit', gui.quit),
]