mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 09:12:05 +00:00
fix: reuse Switch.get() in Switch.appear()
This commit is contained in:
+2
-6
@@ -52,13 +52,9 @@ class Switch:
|
||||
main (ModuleBase):
|
||||
|
||||
Returns:
|
||||
bool
|
||||
bool:
|
||||
"""
|
||||
for data in self.state_list:
|
||||
if main.appear(data['check_button']):
|
||||
return True
|
||||
|
||||
return False
|
||||
return self.get(main=main) != 'unknown'
|
||||
|
||||
def get(self, main):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user