Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit a270f9d

Browse files
committed
Fixed tray icon click not doing anything
1 parent 25ad163 commit a270f9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self):
5858
self.tray = QSystemTrayIcon()
5959
menu = QMenu()
6060
self.tray.setContextMenu(menu)
61-
# self.tray.activated.connect()
61+
self.tray.activated.connect(self.showManagerWindow)
6262
self.tray.setIcon(QIcon(os.path.join(
6363
os.path.dirname(__file__), 'res', 'icon.png'
6464
)))
@@ -81,6 +81,10 @@ def InitWindow(self):
8181
self.background_graphics.show()
8282
movie.start()
8383

84+
def showManagerWindow(self):
85+
self.InitWindow()
86+
self.show()
87+
8488
# Ask user to keep manager in background
8589

8690
def closeEvent(self, event):

0 commit comments

Comments
 (0)