Skip to content

Commit 39f41e4

Browse files
committed
Improve string resources
1 parent d42279b commit 39f41e4

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public bool HideNotifyIcon
323323
public bool SearchQueryResultsWithDelay { get; set; }
324324

325325
[JsonConverter(typeof(JsonStringEnumConverter))]
326-
public SearchDelayTime SearchDelayTime { get; set; } = SearchDelayTime.Medium;
326+
public SearchDelayTime SearchDelayTime { get; set; } = SearchDelayTime.Normal;
327327

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

Flow.Launcher.Plugin/SearchDelayTime.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
public enum SearchDelayTime
77
{
88
/// <summary>
9-
/// Long search delay time. 250ms.
9+
/// Very long search delay time. 250ms.
1010
/// </summary>
11-
Long,
11+
VeryLong,
1212

1313
/// <summary>
14-
/// Moderately long search delay time. 200ms.
14+
/// Long search delay time. 200ms.
1515
/// </summary>
16-
ModeratelyLong,
16+
Long,
1717

1818
/// <summary>
19-
/// Medium search delay time. 150ms. Default value.
19+
/// Normal search delay time. 150ms. Default value.
2020
/// </summary>
21-
Medium,
21+
Normal,
2222

2323
/// <summary>
24-
/// Moderately short search delay time. 100ms.
24+
/// Short search delay time. 100ms.
2525
/// </summary>
26-
ModeratelyShort,
26+
Short,
2727

2828
/// <summary>
29-
/// Short search delay time. 50ms.
29+
/// Very short search delay time. 50ms.
3030
/// </summary>
31-
Short
31+
VeryShort
3232
}

Flow.Launcher/Languages/en.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105
<system:String x:Key="searchDelay">Search Delay</system:String>
106106
<system:String x:Key="searchDelayToolTip">Delay for a while to search when typing. This reduces interface jumpiness and result load.</system:String>
107107
<system:String x:Key="searchDelayTime">Default Search Delay Time</system:String>
108-
<system:String x:Key="searchDelayTimeToolTip">Plugin default delay time after which search results appear when typing is stopped. Default is "Medium".</system:String>
108+
<system:String x:Key="searchDelayTimeToolTip">Plugin default delay time after which search results appear when typing is stopped.</system:String>
109+
<system:String x:Key="SearchDelayTimeVeryLong">Very long</system:String>
109110
<system:String x:Key="SearchDelayTimeLong">Long</system:String>
110-
<system:String x:Key="SearchDelayTimeModeratelyLong">Moderately long</system:String>
111-
<system:String x:Key="SearchDelayTimeMedium">Medium</system:String>
112-
<system:String x:Key="SearchDelayTimeModeratelyShort">Moderately short</system:String>
111+
<system:String x:Key="SearchDelayTimeNormal">Normal</system:String>
113112
<system:String x:Key="SearchDelayTimeShort">Short</system:String>
113+
<system:String x:Key="SearchDelayTimeVeryShort">Very short</system:String>
114114

115115
<!-- Setting Plugin -->
116116
<system:String x:Key="searchplugin">Search Plugin</system:String>

Flow.Launcher/SearchDelayTimeWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private void SearchDelayTimeWindow_OnLoaded(object sender, RoutedEventArgs e)
2424
tbOldSearchDelayTime.Text = _pluginViewModel.SearchDelayTimeText;
2525
var searchDelayTimes = DropdownDataGeneric<SearchDelayTime>.GetValues<SearchDelayTimeData>("SearchDelayTime");
2626
SearchDelayTimeData selected = null;
27-
// Because default value is SearchDelayTime.Slow, we need to get selected value before adding default value
27+
// Because default value is SearchDelayTime.VeryShort, we need to get selected value before adding default value
2828
if (_pluginViewModel.PluginSearchDelayTime != null)
2929
{
3030
selected = searchDelayTimes.FirstOrDefault(x => x.Value == _pluginViewModel.PluginSearchDelayTime);

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public bool PortableMode
150150
public SearchDelayTimeData SearchDelayTime
151151
{
152152
get => SearchDelayTimes.FirstOrDefault(x => x.Value == Settings.SearchDelayTime) ??
153-
SearchDelayTimes.FirstOrDefault(x => x.Value == Plugin.SearchDelayTime.Medium) ??
153+
SearchDelayTimes.FirstOrDefault(x => x.Value == Plugin.SearchDelayTime.Normal) ??
154154
SearchDelayTimes.FirstOrDefault();
155155
set
156156
{

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,11 +1273,11 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
12731273
{
12741274
var searchDelayTime = (plugin.Metadata.SearchDelayTime ?? Settings.SearchDelayTime) switch
12751275
{
1276-
SearchDelayTime.Long => 250,
1277-
SearchDelayTime.ModeratelyLong => 200,
1278-
SearchDelayTime.Medium => 150,
1279-
SearchDelayTime.ModeratelyShort => 100,
1280-
SearchDelayTime.Short => 50,
1276+
SearchDelayTime.VeryLong => 250,
1277+
SearchDelayTime.Long => 200,
1278+
SearchDelayTime.Normal => 150,
1279+
SearchDelayTime.Short => 100,
1280+
SearchDelayTime.VeryShort => 50,
12811281
_ => 150
12821282
};
12831283

Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
3333
"ExecuteFileName": "Flow.Launcher.Plugin.WebSearch.dll",
3434
"IcoPath": "Images\\web_search.png",
35-
"SearchDelayTime": "Long"
35+
"SearchDelayTime": "VeryLong"
3636
}

0 commit comments

Comments
 (0)