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

Opt: wait until navbar active is not None (#3832)

This commit is contained in:
Air111
2024-06-03 00:05:23 +08:00
committed by GitHub
parent 1e793295e8
commit bb3f4964ec
2 changed files with 9 additions and 10 deletions

View File

@@ -188,7 +188,8 @@ class Navbar:
active, minimum, maximum = self.get_info(main=main)
logger.info(f'Nav item active: {active} from range ({minimum}, {maximum})')
# Get None when receiving a pure black screenshot.
if minimum is None or maximum is None:
# Active is None could be because of slow animation
if active is None or minimum is None or maximum is None:
continue
index = minimum + left - 1 if left is not None else maximum - right + 1