mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
feat: button cooldown
This commit is contained in:
1 parent
91425cbcaa
commit
12d367fa7e
5 files changed
+39
-17
No files matched your search
@@ -292,6 +292,9 @@ class Controller:
|
||||
def start_cooldown(self) -> None:
|
||||
self.cooldown = cooldown.get_time()
|
||||
|
||||
def get_cooldown(self) -> None:
|
||||
return self.cooldown
|
||||
|
||||
def manage_cooldown(self) -> bool:
|
||||
if cooldown.is_elapsed(self.cooldown):
|
||||
self.cooldown = cooldown.get_time()
|
||||
|
||||
Reference in new issue
Block a user