From ba3d262ccd997a9436cbc5949fbf7cffd967027c Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 27 May 2024 05:49:52 +0900 Subject: [PATCH] MaxResult Item to Theme from General --- .../ViewModels/SettingsPaneThemeViewModel.cs | 6 ++++++ .../Views/SettingsPaneGeneral.xaml | 18 ------------------ .../SettingPages/Views/SettingsPaneTheme.xaml | 19 ++++++++++++++++++- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs index 6d1f86a1f..6b8d83d81 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs @@ -165,6 +165,12 @@ public partial class SettingsPaneThemeViewModel : BaseModel set => Settings.DateFormat = value; } + public IEnumerable MaxResultsRange => Enumerable.Range(2, 16); + public bool KeepMaxResults + { + get => Settings.KeepMaxResults; + set => Settings.KeepMaxResults = value; + } public string ClockText => DateTime.Now.ToString(TimeFormat, Culture); public string DateText => DateTime.Now.ToString(DateFormat, Culture); diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml index e983e77db..c2b23a295 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml @@ -153,24 +153,6 @@ - - - - - - - - - + + + + + + + +