feat(ui): 关机等电源操作添加100s倒计时
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user