Skip to content

Commit ba2bab6

Browse files
committed
added the official webiste
1 parent 5d77e76 commit ba2bab6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DesktopTimer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Author: LetMeFly
33
Date: 2022-09-13 09:17:12
44
LastEditors: LetMeFly
5-
LastEditTime: 2022-09-13 11:08:20
5+
LastEditTime: 2022-10-01 20:03:45
66
'''
77
import sys
88
import time
@@ -96,6 +96,7 @@ def mouseReleaseEvent(self, e: QMouseEvent):
9696
startpauseAction = menu.addAction("Start")
9797
menu.addSeparator()
9898
aboutAction = menu.addAction("About")
99+
websiteAction = menu.addAction("Website")
99100
quitAction = menu.addAction("Exit")
100101
action = menu.exec_(self.mapToGlobal(e.pos()))
101102
if action == startpauseAction:
@@ -112,6 +113,8 @@ def mouseReleaseEvent(self, e: QMouseEvent):
112113
selected = QMessageBox.question(self, "About", self.about, QMessageBox.Yes | QMessageBox.Cancel)
113114
if selected == QMessageBox.Yes:
114115
webbrowser.open('https://letmefly.xyz/?from=MyTimer', new=0, autoraise=True)
116+
if action == websiteAction:
117+
webbrowser.open('https://desktoptimer.letmefly.xyz/?from=DesktopTimerApp', new=0, autoraise=True)
115118

116119

117120
if __name__ == "__main__":

0 commit comments

Comments
 (0)