mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Subtracting None in NavBar.get_total()
This commit is contained in:
parent
b37666416c
commit
98c2e980d5
@ -85,6 +85,8 @@ class Navbar:
|
||||
int: Numbers of nav items that appears
|
||||
"""
|
||||
_, left, right = self.get_info(main=main)
|
||||
if left is None or right is None:
|
||||
return 0
|
||||
return right - left + 1
|
||||
|
||||
def _shop_obstruct_handle(self, main):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user