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