mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: [ALAS] Handle None in interval_clear()
This commit is contained in:
parent
a078c14f25
commit
b1048748d0
@ -212,6 +212,7 @@ class ModuleBase:
|
||||
self.interval_reset(b, interval)
|
||||
return
|
||||
|
||||
if button is not None:
|
||||
if button.name in self.interval_timer:
|
||||
self.interval_timer[button.name].reset()
|
||||
else:
|
||||
@ -223,6 +224,7 @@ class ModuleBase:
|
||||
self.interval_clear(b, interval)
|
||||
return
|
||||
|
||||
if button is not None:
|
||||
if button.name in self.interval_timer:
|
||||
self.interval_timer[button.name].clear()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user