mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-05 20:32:05 +00:00
Add quick unlock config option
This commit is contained in:
1 parent
159f4a413f
commit
f5dcaf9af4
9 files changed
+53
-3
No files matched your search
@@ -271,6 +271,7 @@ def update_config(
|
||||
"additional_backup_path": cfg.set_additional_backup_path,
|
||||
"secret_mode_enabled": cfg.set_secret_mode_enabled,
|
||||
"clipboard_clear_delay": lambda v: cfg.set_clipboard_clear_delay(int(v)),
|
||||
"quick_unlock": cfg.set_quick_unlock,
|
||||
}
|
||||
|
||||
action = mapping.get(key)
|
||||
|
||||
@@ -468,6 +468,9 @@ def config_set(ctx: typer.Context, key: str, value: str) -> None:
|
||||
"min_lowercase": lambda v: cfg.set_min_lowercase(int(v)),
|
||||
"min_digits": lambda v: cfg.set_min_digits(int(v)),
|
||||
"min_special": lambda v: cfg.set_min_special(int(v)),
|
||||
"quick_unlock": lambda v: cfg.set_quick_unlock(
|
||||
v.lower() in ("1", "true", "yes", "y", "on")
|
||||
),
|
||||
}
|
||||
|
||||
action = mapping.get(key)
|
||||
|
||||
Reference in new issue
Block a user