mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Use manager timed_input in MenuHandler
This commit is contained in:
@@ -9,7 +9,6 @@ from termcolor import colored
|
|||||||
from .entry_types import EntryType
|
from .entry_types import EntryType
|
||||||
import seedpass.core.manager as manager_module
|
import seedpass.core.manager as manager_module
|
||||||
from utils.color_scheme import color_text
|
from utils.color_scheme import color_text
|
||||||
from utils.input_utils import timed_input
|
|
||||||
from utils.terminal_utils import clear_header_with_notification
|
from utils.terminal_utils import clear_header_with_notification
|
||||||
|
|
||||||
if TYPE_CHECKING: # pragma: no cover - typing only
|
if TYPE_CHECKING: # pragma: no cover - typing only
|
||||||
@@ -184,7 +183,7 @@ class MenuHandler:
|
|||||||
)
|
)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
try:
|
try:
|
||||||
user_input = timed_input("", 1)
|
user_input = manager_module.timed_input("", 1)
|
||||||
if user_input.strip() == "" or user_input.strip().lower() == "b":
|
if user_input.strip() == "" or user_input.strip().lower() == "b":
|
||||||
break
|
break
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
|
Reference in New Issue
Block a user