From eef6878d9208e34f2a906389bc1871bc17e96aaf Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Fri, 14 Oct 2022 20:46:53 +1100 Subject: [PATCH] fix minimum results to show --- Flow.Launcher/ViewModel/MainViewModel.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 8be81d29b..2f07f43db 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -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; }