From 99a3f558528816855e9d529fe9e9300d0cf582b0 Mon Sep 17 00:00:00 2001 From: DB p Date: Wed, 20 Oct 2021 16:35:10 +0900 Subject: [PATCH] Change "Max Result Count" to be applied immediately --- Flow.Launcher.Infrastructure/UserSettings/Settings.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index ebef2c6315a..9575118c1a8 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -10,7 +10,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings public class Settings : BaseModel { private string language = "en"; - + private int maxresult = 5; public string Hotkey { get; set; } = $"{KeyConstant.Alt} + {KeyConstant.Space}"; public string OpenResultModifiers { get; set; } = KeyConstant.Alt; public bool ShowOpenResultHotkey { get; set; } = true; @@ -72,7 +72,14 @@ public string QuerySearchPrecisionString public double WindowLeft { get; set; } public double WindowTop { get; set; } - public int MaxResultsToShow { get; set; } = 5; + public int MaxResultsToShow + { + get => maxresult; set + { + maxresult = value; + OnPropertyChanged(); + } + } public int ActivateTimes { get; set; }