mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-06 12:52:04 +00:00
Refactor sync trigger
This commit is contained in:
1 parent
de92a80798
commit
dcff360508
9 files changed
+32
-2
No files matched your search
@@ -741,6 +741,7 @@ def handle_settings(password_manager: PasswordManager) -> None:
|
||||
password_manager.lock_vault()
|
||||
print(colored("Vault locked. Please re-enter your password.", "yellow"))
|
||||
password_manager.unlock_vault()
|
||||
password_manager.start_background_sync()
|
||||
pause()
|
||||
elif choice == "13":
|
||||
handle_display_stats(password_manager)
|
||||
@@ -777,6 +778,7 @@ def display_menu(
|
||||
if callable(display_fn):
|
||||
display_fn()
|
||||
pause()
|
||||
password_manager.start_background_sync()
|
||||
while True:
|
||||
fp, parent_fp, child_fp = getattr(
|
||||
password_manager,
|
||||
@@ -793,6 +795,7 @@ def display_menu(
|
||||
print(colored("Session timed out. Vault locked.", "yellow"))
|
||||
password_manager.lock_vault()
|
||||
password_manager.unlock_vault()
|
||||
password_manager.start_background_sync()
|
||||
continue
|
||||
# Periodically push updates to Nostr
|
||||
if (
|
||||
@@ -815,6 +818,7 @@ def display_menu(
|
||||
print(colored("Session timed out. Vault locked.", "yellow"))
|
||||
password_manager.lock_vault()
|
||||
password_manager.unlock_vault()
|
||||
password_manager.start_background_sync()
|
||||
continue
|
||||
password_manager.update_activity()
|
||||
if not choice:
|
||||
|
||||
Reference in new issue
Block a user