Archived
0
0
This commit is contained in:
2025-12-17 20:43:32 +08:00
parent 1e534e5fe5
commit 321f287263
15 changed files with 235 additions and 82 deletions

View File

@@ -105,8 +105,11 @@ class Recognition(BasePuzzleWidget):
self.handler(5)
def handler(self, rating):
if not self.atom.registry["electron"].is_activated() and not self.atom.registry["runtime"]["locked"]:
self.atom.registry["electron"].activate()
logger.debug(f"激活原子 {self.atom}")
self.atom.lock(1)
self.atom.minimize(5)
if not self.atom.registry["runtime"]["locked"]:
if not self.atom.registry["electron"].is_activated():
self.atom.registry["electron"].activate()
logger.debug(f"激活原子 {self.atom}")
self.atom.lock(1)
self.atom.minimize(5)
else:
pass