From e9ef26a8dde26530f21e0ce244c0e03e9cf8d60b Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 3 May 2025 18:17:00 +0800 Subject: [PATCH] Change related setting names --- Flow.Launcher.Infrastructure/UserSettings/Settings.cs | 6 +++--- Flow.Launcher/ViewModel/MainViewModel.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 2b5fc6bc0..b630a4ecc 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -159,9 +159,9 @@ namespace Flow.Launcher.Infrastructure.UserSettings } } - public bool ShowHomeQuery { get; set; } = true; - public bool ShowHistoryRecordsForHomeQuery { get; set; } = false; - public int HistoryRecordsCountForHomeQuery { get; set; } = 5; + public bool ShowHomePage { get; set; } = true; + public bool ShowHistoryResultsForHomePage { get; set; } = false; + public int MaxHistoryResultsToShowForHomePage { get; set; } = 5; public int CustomExplorerIndex { get; set; } = 0; diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 8244d5765..06cce3026 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1076,7 +1076,7 @@ namespace Flow.Launcher.ViewModel public void InitializeQuery() { - if (Settings.ShowHomeQuery) + if (Settings.ShowHomePage) { _ = QueryResultsAsync(false); } @@ -1211,7 +1211,7 @@ namespace Flow.Launcher.ViewModel if (query == null) // shortcut expanded { - if (Settings.ShowHomeQuery) + if (Settings.ShowHomePage) { plugins = PluginManager.ValidPluginsForHomeQuery(query); }