Skip to content

Commit d33e751

Browse files
authored
Merge pull request #3421 from onesounds/250331-NewPluginsPage
Plugin Page Control Swap Feature & Restore "Search Delay" Field in General Page
2 parents 9bc27a4 + c351a38 commit d33e751

23 files changed

+480
-708
lines changed

Flow.Launcher.Infrastructure/UserSettings/PluginSettings.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ public class Plugin
120120
public int Priority { get; set; }
121121

122122
[JsonIgnore]
123-
public SearchDelayTime? DefaultSearchDelayTime { get; set; }
123+
public int? DefaultSearchDelayTime { get; set; }
124124

125-
[JsonConverter(typeof(JsonStringEnumConverter))]
126-
public SearchDelayTime? SearchDelayTime { get; set; }
125+
public int? SearchDelayTime { get; set; }
127126

128127
/// <summary>
129128
/// Used only to save the state of the plugin in settings

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,7 @@ public bool HideNotifyIcon
321321
public bool HideWhenDeactivated { get; set; } = true;
322322

323323
public bool SearchQueryResultsWithDelay { get; set; }
324-
325-
[JsonConverter(typeof(JsonStringEnumConverter))]
326-
public SearchDelayTime SearchDelayTime { get; set; } = SearchDelayTime.Normal;
324+
public int SearchDelayTime { get; set; } = 150;
327325

328326
[JsonConverter(typeof(JsonStringEnumConverter))]
329327
public SearchWindowScreens SearchWindowScreen { get; set; } = SearchWindowScreens.Cursor;

Flow.Launcher.Plugin/PluginMetadata.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ internal set
9999
public bool HideActionKeywordPanel { get; set; }
100100

101101
/// <summary>
102-
/// Plugin search delay time. Null means use default search delay time.
102+
/// Plugin search delay time in ms. Null means use default search delay time.
103103
/// </summary>
104-
[JsonConverter(typeof(JsonStringEnumConverter))]
105-
public SearchDelayTime? SearchDelayTime { get; set; } = null;
104+
public int? SearchDelayTime { get; set; } = null;
106105

107106
/// <summary>
108107
/// Plugin icon path.

Flow.Launcher.Plugin/SearchDelayTime.cs

-32
This file was deleted.

Flow.Launcher/Languages/en.xaml

+7-11
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,9 @@
108108
<system:String x:Key="AlwaysPreviewToolTip">Always open preview panel when Flow activates. Press {0} to toggle preview.</system:String>
109109
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
110110
<system:String x:Key="searchDelay">Search Delay</system:String>
111-
<system:String x:Key="searchDelayToolTip">Delay for a while to search when typing. This reduces interface jumpiness and result load.</system:String>
111+
<system:String x:Key="searchDelayToolTip">Adds a short delay while typing to reduce UI flicker and result load. Recommended if your typing speed is average.</system:String>
112112
<system:String x:Key="searchDelayTime">Default Search Delay Time</system:String>
113-
<system:String x:Key="searchDelayTimeToolTip">Plugin default delay time after which search results appear when typing is stopped.</system:String>
114-
<system:String x:Key="SearchDelayTimeVeryLong">Very long</system:String>
115-
<system:String x:Key="SearchDelayTimeLong">Long</system:String>
116-
<system:String x:Key="SearchDelayTimeNormal">Normal</system:String>
117-
<system:String x:Key="SearchDelayTimeShort">Short</system:String>
118-
<system:String x:Key="SearchDelayTimeVeryShort">Very short</system:String>
113+
<system:String x:Key="searchDelayTimeToolTip">Wait time before showing results after typing stops. Higher values wait longer. (ms)</system:String>
119114

120115
<!-- Setting Plugin -->
121116
<system:String x:Key="searchplugin">Search Plugin</system:String>
@@ -134,6 +129,10 @@
134129
<system:String x:Key="actionKeywordsTooltip">Change Action Keywords</system:String>
135130
<system:String x:Key="pluginSearchDelayTime">Plugin seach delay time</system:String>
136131
<system:String x:Key="pluginSearchDelayTimeTooltip">Change Plugin Seach Delay Time</system:String>
132+
<system:String x:Key="FilterComboboxLabel">Advanced Settings:</system:String>
133+
<system:String x:Key="DisplayModeOnOff">Enabled</system:String>
134+
<system:String x:Key="DisplayModePriority">Priority</system:String>
135+
<system:String x:Key="DisplayModeSearchDelay">Search Delay</system:String>
137136
<system:String x:Key="currentPriority">Current Priority</system:String>
138137
<system:String x:Key="newPriority">New Priority</system:String>
139138
<system:String x:Key="priority">Priority</system:String>
@@ -149,7 +148,6 @@
149148
<system:String x:Key="failedToRemovePluginSettingsMessage">Plugins: {0} - Fail to remove plugin settings files, please remove them manually</system:String>
150149
<system:String x:Key="failedToRemovePluginCacheTitle">Fail to remove plugin cache</system:String>
151150
<system:String x:Key="failedToRemovePluginCacheMessage">Plugins: {0} - Fail to remove plugin cache files, please remove them manually</system:String>
152-
<system:String x:Key="default">Default</system:String>
153151

154152
<!-- Setting Plugin Store -->
155153
<system:String x:Key="pluginStore">Plugin Store</system:String>
@@ -376,9 +374,7 @@
376374

377375
<!-- Search Delay Settings Dialog -->
378376
<system:String x:Key="searchDelayTimeTitle">Search Delay Time Setting</system:String>
379-
<system:String x:Key="searchDelayTime_tips">Select the search delay time you like to use for the plugin. Select "{0}" if you don't want to specify any, and the plugin will use default search delay time.</system:String>
380-
<system:String x:Key="currentSearchDelayTime">Current search delay time</system:String>
381-
<system:String x:Key="newSearchDelayTime">New search delay time</system:String>
377+
<system:String x:Key="searchDelayTimeTips">Input the search delay time in ms you like to use for the plugin. Input empty if you don't want to specify any, and the plugin will use default search delay time.</system:String>
382378

383379
<!-- Custom Query Hotkey Dialog -->
384380
<system:String x:Key="customeQueryHotkeyTitle">Custom Query Hotkey</system:String>

Flow.Launcher/PriorityChangeWindow.xaml

-121
This file was deleted.

Flow.Launcher/PriorityChangeWindow.xaml.cs

-67
This file was deleted.

0 commit comments

Comments
 (0)