Skip to content

Commit

Permalink
tray action: sync now
Browse files Browse the repository at this point in the history
  • Loading branch information
shotwn committed Apr 5, 2020
1 parent 0e10399 commit dc5443d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def __init__(self, root):
}
""")
self.tray_actions = {}
self.tray_actions["sync_now"] = menu.addAction("Sync Now")
self.tray_actions["sync_now"].triggered.connect(lambda: self.root.sync_sim(force=True))
self.tray_actions["hide_show"] = menu.addAction("Hide")
self.tray_actions["hide_show"].triggered.connect(self.hide)
self.tray_actions["exit"] = menu.addAction("Exit")
Expand Down

0 comments on commit dc5443d

Please sign in to comment.