fix: reuse Switch.get() in Switch.appear()

This commit is contained in:
2026-07-06 22:40:56 +08:00
parent fbc63d0a54
commit e7b60ba3ea
+2 -6
View File
@@ -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):
""" """