feat(ui): 关机等电源操作添加100s倒计时

This commit is contained in:
DLmaster
2025-03-14 23:06:51 +08:00
parent 364af4b9c5
commit d4d479ca20
5 changed files with 78 additions and 9 deletions

View File

@@ -72,6 +72,7 @@ class AUTO_MAA(MSFluentWindow):
self.splashScreen = SplashScreen(self.windowIcon(), self)
self.show_ui("显示主窗口", if_quick=True)
TaskManager.main_window = self.window()
MainInfoBar.main_window = self.window()
System.main_window = self.window()
@@ -260,7 +261,9 @@ class AUTO_MAA(MSFluentWindow):
)
if "网络错误" not in result:
Up = PushButton("更新")
Up.clicked.connect(lambda: self.setting.get_update(if_question=False))
Up.clicked.connect(
lambda: self.setting.get_update(if_question=False)
)
Up.clicked.connect(info.close)
info.addWidget(Up)
info.show()