mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-05 17:43:54 -06:00
fix: let q decline the download confirmation
This commit is contained in:
1 parent
eead810015
commit
a56ab2a6b7
4 files changed
+22
-4
No files matched your search
+7
-2
@@ -2562,9 +2562,14 @@ def installer_id() -> str:
|
||||
return "unknown"
|
||||
|
||||
|
||||
# Answers that stop: every menu before this one taught q as quit.
|
||||
_REFUSALS = ("n", "q", "quit", "exit", "stop", "abort")
|
||||
|
||||
|
||||
def _confirm(prompt: str) -> bool:
|
||||
"""Yes unless the answer starts with n."""
|
||||
return not _ask(prompt).lower().startswith("n")
|
||||
"""Yes unless the answer refuses: n, no, or one of the quit words."""
|
||||
answer = _ask(prompt).strip().lower()
|
||||
return not (answer.startswith("n") or answer in _REFUSALS)
|
||||
|
||||
|
||||
def _print_plan(to_download: list[dict], bios_path: Path, term: Terminal) -> None:
|
||||
|
||||
Reference in new issue
Block a user