From 4c5fe2cb1c926d90eca64aa23fcb1f5259f612e0 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Tue, 29 Aug 2023 02:13:41 +0200 Subject: [PATCH] config/cli: prompt_choice(): fix change detection logical inversion --- config/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cli.py b/config/cli.py index ba1ada5..740ab17 100644 --- a/config/cli.py +++ b/config/cli.py @@ -129,7 +129,7 @@ def prompt_choice(current: Optional[Any], key: str, choices: Iterable[Any], allo res, _ = prompt_config(text=key, default=current, field_type=click.Choice(choices), show_choices=show_choices) if allow_none and res == '': res = None - return res, res == current + return res, res != current def resolve_profile_field(current: Any, *kargs):