config/cli: prompt_choice(): fix change detection logical inversion

This commit is contained in:
InsanePrawn 2023-08-29 02:13:41 +02:00
parent 6bcd132b53
commit 4c5fe2cb1c

View file

@ -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):