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)
|
self.interval_reset(b, interval)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if button is not None:
|
||||||
if button.name in self.interval_timer:
|
if button.name in self.interval_timer:
|
||||||
self.interval_timer[button.name].reset()
|
self.interval_timer[button.name].reset()
|
||||||
else:
|
else:
|
||||||
@ -223,6 +224,7 @@ class ModuleBase:
|
|||||||
self.interval_clear(b, interval)
|
self.interval_clear(b, interval)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if button is not None:
|
||||||
if button.name in self.interval_timer:
|
if button.name in self.interval_timer:
|
||||||
self.interval_timer[button.name].clear()
|
self.interval_timer[button.name].clear()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user