mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-20 00:13:02 +08:00
fix(ALMainWindow): 修复定时任务的消息通知图标与运行状态不一致的问题
This commit is contained in:
@@ -325,7 +325,7 @@ class ALMainWindow(MsgBase, QMainWindow, Ui_ALMainWindow):
|
|||||||
self.TrayIcon.showMessage(
|
self.TrayIcon.showMessage(
|
||||||
"定时任务 - AutoLibrary",
|
"定时任务 - AutoLibrary",
|
||||||
f"\n定时任务 '{timer_task['name']}' 执行{'失败' if is_error else '完成'}",
|
f"\n定时任务 '{timer_task['name']}' 执行{'失败' if is_error else '完成'}",
|
||||||
QSystemTrayIcon.MessageIcon.Information,
|
QSystemTrayIcon.MessageIcon.Warning if is_error else QSystemTrayIcon.MessageIcon.Information,
|
||||||
1000
|
1000
|
||||||
)
|
)
|
||||||
self._showTrace(
|
self._showTrace(
|
||||||
|
|||||||
Reference in New Issue
Block a user