1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Fix: notify when GameNotRunningError

This commit is contained in:
2024-09-02 01:34:29 +08:00
parent 0624c992e3
commit f0a7e98ac8
6 changed files with 10 additions and 9 deletions

View File

@@ -7210,7 +7210,7 @@
},
"CollectWeeklyMission": {
"type": "checkbox",
"value": true
"value": false
}
},
"Storage": {

View File

@@ -463,7 +463,7 @@ Reward:
CollectCoin: true
CollectExp: true
CollectMission: true
CollectWeeklyMission: true
CollectWeeklyMission: false
GeneralShop:
UseGems: false
Refresh: false

View File

@@ -254,7 +254,7 @@ class GeneratedConfig:
Reward_CollectCoin = True
Reward_CollectExp = True
Reward_CollectMission = True
Reward_CollectWeeklyMission = True
Reward_CollectWeeklyMission = False
# Group `GeneralShop`
GeneralShop_UseGems = False

View File

@@ -248,6 +248,12 @@ class Device(Screenshot, Control, AppControl, Input):
if self.app_is_running():
raise GameStuckError(f'Wait too long')
else:
from module.notify import handle_notify
handle_notify(
self.config.Error_OnePushConfig,
title=f"Alas <{self.config.config_name}> crashed",
content=f"<{self.config.config_name}> GameNotRunningError"
)
raise GameNotRunningError('Game died')
def handle_control_check(self, button):