mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:49:26 +08:00
Opt: Remove ensure main after task finishes
- Clear offset of GOTO_MAIN to avoid clicking outside of screen
This commit is contained in:
@@ -104,6 +104,9 @@ class Button:
|
||||
offset = np.subtract(button.button, button._button)[:2]
|
||||
self._button_offset = area_offset(self._button, offset=offset)
|
||||
|
||||
def clear_offset(self):
|
||||
self._button_offset = None
|
||||
|
||||
def ensure_template(self):
|
||||
"""
|
||||
Load asset image.
|
||||
|
||||
Reference in New Issue
Block a user