From 393668a3373a80c3b469a4edbde7422ce3ea2cc2 Mon Sep 17 00:00:00 2001 From: Juergen Schwitalla Date: Wed, 27 Sep 2023 07:45:19 +0200 Subject: [PATCH] fix exclusive mode in ConfigManager If a QUARK parameter is declared as exclusive multiple selections have been possible and the selected value was stored as a list. --- src/ConfigManager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ConfigManager.py b/src/ConfigManager.py index 21ba705a..7ad27204 100644 --- a/src/ConfigManager.py +++ b/src/ConfigManager.py @@ -325,9 +325,11 @@ def _query_for_config(param_opts: dict, prefix: str = "") -> dict: print(f"{prefix} {config_answer['description']}: {config_answer['values'][0]}") elif config_answer.get('exclusive', False): - answer = checkbox(key=key, - message=f"{prefix} {config_answer['description']}", - choices=config_answer['values']) + answer = inquirer.prompt( + [inquirer.List(key, + message=f"{prefix} {config_answer['description']}", + choices=config_answer['values'] + )]) values = (answer[key],) else: