config/cli: prompt_choice(): fix change detection logical inversion
This commit is contained in:
parent
6bcd132b53
commit
4c5fe2cb1c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
res, _ = prompt_config(text=key, default=current, field_type=click.Choice(choices), show_choices=show_choices)
|
||||||
if allow_none and res == '':
|
if allow_none and res == '':
|
||||||
res = None
|
res = None
|
||||||
return res, res == current
|
return res, res != current
|
||||||
|
|
||||||
|
|
||||||
def resolve_profile_field(current: Any, *kargs):
|
def resolve_profile_field(current: Any, *kargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue