Skip to content

Commit bb03339

Browse files
committed
Increase popup duration
1 parent 79d9430 commit bb03339

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

infinitrix.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ def initAnimation(self, startPos, endPos):
237237
opacityAnimation.setEndValue(0.0)
238238
# Set the animation curve
239239
opacityAnimation.setEasingCurve(QEasingCurve.InQuad)
240-
opacityAnimation.setDuration(4000)
240+
opacityAnimation.setDuration(6000)
241241
# Moving up animation
242242
moveAnimation = QPropertyAnimation(self, b"pos")
243243
moveAnimation.setStartValue(startPos)
244244
moveAnimation.setEndValue(endPos)
245245
moveAnimation.setEasingCurve(QEasingCurve.InQuad)
246-
moveAnimation.setDuration(5000)
246+
moveAnimation.setDuration(7000)
247247
# Parallel animation group (the purpose is to make the two animations above simultaneously)
248248
self.animationGroup = QParallelAnimationGroup(self)
249249
self.animationGroup.addAnimation(opacityAnimation)
@@ -437,8 +437,9 @@ def on_tray_activated(reason):
437437

438438
# MainWindow functions
439439

440-
def restart():
441-
return QApplication.exit( app_exit_code )
440+
#Restart function
441+
def restart():
442+
return QApplication.exit( app_exit_code )
442443

443444
# Override closeEvent, to intercept the window closing event
444445
# The window will be closed only if there is no check mark in the check box
@@ -451,7 +452,7 @@ def closeEvent(self, event):
451452
"Infinitrix",
452453
"Infinitrix was minimized to Tray",
453454
QSystemTrayIcon.Information,
454-
2000
455+
10000
455456
)
456457

457458
#Show settings window
@@ -531,7 +532,7 @@ def strip_html(text):
531532
"Infinitrix",
532533
strip_html(msg),
533534
QSystemTrayIcon.Information,
534-
2000
535+
5000
535536
)
536537
else:
537538
if hasattr(self, "_blabel"):

0 commit comments

Comments
 (0)