mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix typo & Fix tip issue
This commit is contained in:
parent
b860bb2edd
commit
d42279bd8f
3 changed files with 9 additions and 7 deletions
|
|
@ -65,8 +65,8 @@
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
x:Name="tbSearchDelayTimeTips"
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text="{DynamicResource searchDelayTime_tips}"
|
|
||||||
TextAlignment="Left"
|
TextAlignment="Left"
|
||||||
TextWrapping="WrapWithOverflow" />
|
TextWrapping="WrapWithOverflow" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
FontSize="14"
|
FontSize="14"
|
||||||
Text="{DynamicResource newSearchDelayTime}" />
|
Text="{DynamicResource newSearchDelayTime}" />
|
||||||
<ComboBox
|
<ComboBox
|
||||||
x:Name="tbDelay"
|
x:Name="cbDelay"
|
||||||
MaxWidth="200"
|
MaxWidth="200"
|
||||||
Margin="10 10 15 10"
|
Margin="10 10 15 10"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ public partial class SearchDelayTimeWindow : Window
|
||||||
|
|
||||||
private void SearchDelayTimeWindow_OnLoaded(object sender, RoutedEventArgs e)
|
private void SearchDelayTimeWindow_OnLoaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
tbSearchDelayTimeTips.Text = string.Format(App.API.GetTranslation("searchDelayTime_tips"),
|
||||||
|
App.API.GetTranslation("default"));
|
||||||
tbOldSearchDelayTime.Text = _pluginViewModel.SearchDelayTimeText;
|
tbOldSearchDelayTime.Text = _pluginViewModel.SearchDelayTimeText;
|
||||||
var searchDelayTimes = DropdownDataGeneric<SearchDelayTime>.GetValues<SearchDelayTimeData>("SearchDelayTime");
|
var searchDelayTimes = DropdownDataGeneric<SearchDelayTime>.GetValues<SearchDelayTimeData>("SearchDelayTime");
|
||||||
SearchDelayTimeData selected = null;
|
SearchDelayTimeData selected = null;
|
||||||
|
|
@ -31,9 +33,9 @@ public partial class SearchDelayTimeWindow : Window
|
||||||
// When _pluginViewModel.PluginSearchDelayTime equals null, we will select this
|
// When _pluginViewModel.PluginSearchDelayTime equals null, we will select this
|
||||||
searchDelayTimes.Insert(0, new SearchDelayTimeData { Display = App.API.GetTranslation("default"), LocalizationKey = "default" });
|
searchDelayTimes.Insert(0, new SearchDelayTimeData { Display = App.API.GetTranslation("default"), LocalizationKey = "default" });
|
||||||
selected ??= searchDelayTimes.FirstOrDefault();
|
selected ??= searchDelayTimes.FirstOrDefault();
|
||||||
tbDelay.ItemsSource = searchDelayTimes;
|
cbDelay.ItemsSource = searchDelayTimes;
|
||||||
tbDelay.SelectedItem = selected;
|
cbDelay.SelectedItem = selected;
|
||||||
tbDelay.Focus();
|
cbDelay.Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
|
private void BtnCancel_OnClick(object sender, RoutedEventArgs e)
|
||||||
|
|
@ -44,7 +46,7 @@ public partial class SearchDelayTimeWindow : Window
|
||||||
private void btnDone_OnClick(object sender, RoutedEventArgs _)
|
private void btnDone_OnClick(object sender, RoutedEventArgs _)
|
||||||
{
|
{
|
||||||
// Update search delay time
|
// Update search delay time
|
||||||
var selected = tbDelay.SelectedItem as SearchDelayTimeData;
|
var selected = cbDelay.SelectedItem as SearchDelayTimeData;
|
||||||
SearchDelayTime? changedValue = selected?.LocalizationKey != "default" ? selected.Value : null;
|
SearchDelayTime? changedValue = selected?.LocalizationKey != "default" ? selected.Value : null;
|
||||||
_pluginViewModel.PluginSearchDelayTime = changedValue;
|
_pluginViewModel.PluginSearchDelayTime = changedValue;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
|
|
||||||
public Visibility ActionKeywordsVisibility => PluginPair.Metadata.HideActionKeywordPanel ?
|
public Visibility ActionKeywordsVisibility => PluginPair.Metadata.HideActionKeywordPanel ?
|
||||||
Visibility.Collapsed : Visibility.Visible;
|
Visibility.Collapsed : Visibility.Visible;
|
||||||
public string InitilizaTime => PluginPair.Metadata.InitTime + "ms";
|
public string InitializeTime => PluginPair.Metadata.InitTime + "ms";
|
||||||
public string QueryTime => PluginPair.Metadata.AvgQueryTime + "ms";
|
public string QueryTime => PluginPair.Metadata.AvgQueryTime + "ms";
|
||||||
public string Version => App.API.GetTranslation("plugin_query_version") + " " + PluginPair.Metadata.Version;
|
public string Version => App.API.GetTranslation("plugin_query_version") + " " + PluginPair.Metadata.Version;
|
||||||
public string InitAndQueryTime =>
|
public string InitAndQueryTime =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue