Skip to content

Commit

Permalink
fix: remove double click, does not work
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Oct 1, 2024
1 parent 92c76ce commit 609cf9a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions antarest/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,12 @@ def create_systray_app() -> AntaresSystrayApp:
# Adding options to the System Tray
def handle_action(reason: int) -> None:
"""
- shows context menu also on left click
- open browser on double click
Shows context menu also on left click
"""
if reason == QSystemTrayIcon.Trigger: # type: ignore
menu = tray.contextMenu()
assert menu is not None
menu.popup(QCursor.pos())
if reason == QSystemTrayIcon.DoubleClick: # type: ignore
open_app()

tray.setContextMenu(menu)
tray.activated.connect(handle_action)
Expand Down

0 comments on commit 609cf9a

Please sign in to comment.