fix minimum results to show

This commit is contained in:
Jeremy Wu 2022-10-14 20:46:53 +11:00
parent 523627986b
commit eef6878d92

View file

@ -393,14 +393,18 @@ namespace Flow.Launcher.ViewModel
[RelayCommand]
private void IncreaseMaxResult()
{
if (_settings.MaxResultsToShow > 16) return;
if (_settings.MaxResultsToShow == 17)
return;
_settings.MaxResultsToShow += 1;
}
[RelayCommand]
private void DecreaseMaxResult()
{
if (_settings.MaxResultsToShow < 2) return;
if (_settings.MaxResultsToShow == 2)
return;
_settings.MaxResultsToShow -= 1;
}