Skip to content

Commit d42279b

Browse files
committed
Fix typo & Fix tip issue
1 parent b860bb2 commit d42279b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Flow.Launcher/SearchDelayTimeWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
</StackPanel>
6666
<StackPanel>
6767
<TextBlock
68+
x:Name="tbSearchDelayTimeTips"
6869
FontSize="14"
69-
Text="{DynamicResource searchDelayTime_tips}"
7070
TextAlignment="Left"
7171
TextWrapping="WrapWithOverflow" />
7272
</StackPanel>
@@ -99,7 +99,7 @@
9999
FontSize="14"
100100
Text="{DynamicResource newSearchDelayTime}" />
101101
<ComboBox
102-
x:Name="tbDelay"
102+
x:Name="cbDelay"
103103
MaxWidth="200"
104104
Margin="10 10 15 10"
105105
HorizontalAlignment="Left"

Flow.Launcher/SearchDelayTimeWindow.xaml.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public SearchDelayTimeWindow(PluginViewModel pluginViewModel)
1919

2020
private void SearchDelayTimeWindow_OnLoaded(object sender, RoutedEventArgs e)
2121
{
22+
tbSearchDelayTimeTips.Text = string.Format(App.API.GetTranslation("searchDelayTime_tips"),
23+
App.API.GetTranslation("default"));
2224
tbOldSearchDelayTime.Text = _pluginViewModel.SearchDelayTimeText;
2325
var searchDelayTimes = DropdownDataGeneric<SearchDelayTime>.GetValues<SearchDelayTimeData>("SearchDelayTime");
2426
SearchDelayTimeData selected = null;
@@ -31,9 +33,9 @@ private void SearchDelayTimeWindow_OnLoaded(object sender, RoutedEventArgs e)
3133
// When _pluginViewModel.PluginSearchDelayTime equals null, we will select this
3234
searchDelayTimes.Insert(0, new SearchDelayTimeData { Display = App.API.GetTranslation("default"), LocalizationKey = "default" });
3335
selected ??= searchDelayTimes.FirstOrDefault();
34-
tbDelay.ItemsSource = searchDelayTimes;
35-
tbDelay.SelectedItem = selected;
36-
tbDelay.Focus();
36+
cbDelay.ItemsSource = searchDelayTimes;
37+
cbDelay.SelectedItem = selected;
38+
cbDelay.Focus();
3739
}
3840

3941
private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
@@ -44,7 +46,7 @@ private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
4446
private void btnDone_OnClick(object sender, RoutedEventArgs _)
4547
{
4648
// Update search delay time
47-
var selected = tbDelay.SelectedItem as SearchDelayTimeData;
49+
var selected = cbDelay.SelectedItem as SearchDelayTimeData;
4850
SearchDelayTime? changedValue = selected?.LocalizationKey != "default" ? selected.Value : null;
4951
_pluginViewModel.PluginSearchDelayTime = changedValue;
5052

Flow.Launcher/ViewModel/PluginViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public Control SettingControl
118118

119119
public Visibility ActionKeywordsVisibility => PluginPair.Metadata.HideActionKeywordPanel ?
120120
Visibility.Collapsed : Visibility.Visible;
121-
public string InitilizaTime => PluginPair.Metadata.InitTime + "ms";
121+
public string InitializeTime => PluginPair.Metadata.InitTime + "ms";
122122
public string QueryTime => PluginPair.Metadata.AvgQueryTime + "ms";
123123
public string Version => App.API.GetTranslation("plugin_query_version") + " " + PluginPair.Metadata.Version;
124124
public string InitAndQueryTime =>

0 commit comments

Comments
 (0)