Skip to content

Commit 13fcdc6

Browse files
committed
Fix typo 'seperator'
1 parent 1d625c9 commit 13fcdc6

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Settings[attributes.Name] is bool isChecked
448448
{
449449
var sep = new Separator();
450450

451-
sep.SetResourceReference(Separator.StyleProperty, "SettingPanelSeperatorStyle");
451+
sep.SetResourceReference(Separator.StyleProperty, "SettingPanelSeparatorStyle");
452452

453453
contentControl = sep;
454454

@@ -458,7 +458,7 @@ Settings[attributes.Name] is bool isChecked
458458
continue;
459459
}
460460

461-
// If type is textBlock or seperator, we just add the content control to the main grid
461+
// If type is textBlock or separator, we just add the content control to the main grid
462462
if (panel == null)
463463
{
464464
// Add the content control to the column 0, row rowCount and columnSpan 2 of the main grid
@@ -498,7 +498,7 @@ Settings[attributes.Name] is bool isChecked
498498

499499
private static bool NeedSaveInSettings(string type)
500500
{
501-
return type != "textBlock" && type != "seperator" && type != "hyperlink";
501+
return type != "textBlock" && type != "separator" && type != "hyperlink";
502502
}
503503
}
504504
}

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5596,7 +5596,7 @@
55965596
<Thickness x:Key="SettingPanelItemLeftTopBottomMargin">9,4.5,0,4.5</Thickness>
55975597
<Thickness x:Key="SettingPanelItemRightTopBottomMargin">0,4.5,9,4.5</Thickness>
55985598

5599-
<Style x:Key="SettingPanelSeperatorStyle" TargetType="Separator">
5599+
<Style x:Key="SettingPanelSeparatorStyle" TargetType="Separator">
56005600
<Setter Property="Margin" Value="-70 13.5 -18 13.5" />
56015601
<Setter Property="Height" Value="1" />
56025602
<Setter Property="VerticalAlignment" Value="Top" />

Plugins/Flow.Launcher.Plugin.Calculator/Main.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@ private string ChangeDecimalSeparator(decimal value, string newDecimalSeparator)
155155
return value.ToString(numberFormatInfo);
156156
}
157157

158-
private string GetDecimalSeparator()
158+
private static string GetDecimalSeparator()
159159
{
160-
string systemDecimalSeperator = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;
161-
switch (_settings.DecimalSeparator)
160+
string systemDecimalSeparator = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;
161+
return _settings.DecimalSeparator switch
162162
{
163-
case DecimalSeparator.UseSystemLocale: return systemDecimalSeperator;
164-
case DecimalSeparator.Dot: return dot;
165-
case DecimalSeparator.Comma: return comma;
166-
default: return systemDecimalSeperator;
167-
}
163+
DecimalSeparator.UseSystemLocale => systemDecimalSeparator,
164+
DecimalSeparator.Dot => dot,
165+
DecimalSeparator.Comma => comma,
166+
_ => systemDecimalSeparator,
167+
};
168168
}
169169

170170
private bool IsBracketComplete(string query)

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
Grid.Column="0"
335335
Grid.ColumnSpan="2"
336336
Orientation="Vertical">
337-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
337+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
338338
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_native_context_menu_header}" />
339339
</StackPanel>
340340

@@ -390,7 +390,7 @@
390390
Grid.Column="0"
391391
Grid.ColumnSpan="2"
392392
Orientation="Vertical">
393-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
393+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
394394
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_previewpanel_setting_header}" />
395395
</StackPanel>
396396

@@ -470,7 +470,7 @@
470470
Grid.Column="0"
471471
Grid.ColumnSpan="2"
472472
Orientation="Vertical">
473-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
473+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
474474
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_everything_setting_header}" />
475475
</StackPanel>
476476

@@ -549,7 +549,7 @@
549549
Grid.Column="0"
550550
Grid.ColumnSpan="2"
551551
Orientation="Vertical">
552-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
552+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
553553
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_manageactionkeywords_header}" />
554554
</StackPanel>
555555

@@ -586,7 +586,7 @@
586586
Grid.Column="0"
587587
Grid.ColumnSpan="2"
588588
Orientation="Vertical">
589-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
589+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
590590
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_quickaccesslinks_header}" />
591591
</StackPanel>
592592

@@ -642,7 +642,7 @@
642642
Grid.Column="0"
643643
Grid.ColumnSpan="2"
644644
Orientation="Vertical">
645-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
645+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
646646
<TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{DynamicResource plugin_explorer_indexsearchexcludedpaths_header}" />
647647
</StackPanel>
648648

Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
Grid.Row="1"
5959
HorizontalAlignment="Stretch"
6060
Orientation="Vertical">
61-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
61+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
6262
<DockPanel HorizontalAlignment="Stretch" LastChildFill="True">
6363
<TextBlock
6464
MinWidth="120"
@@ -90,7 +90,7 @@
9090
ToolTip="{DynamicResource flowlauncher_plugin_program_enable_hideduplicatedwindowsapp_tooltip}" />
9191
</WrapPanel>
9292
</DockPanel>
93-
<Separator Style="{StaticResource SettingPanelSeperatorStyle}" />
93+
<Separator Style="{StaticResource SettingPanelSeparatorStyle}" />
9494
<StackPanel
9595
HorizontalAlignment="Left"
9696
VerticalAlignment="Center"

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
Content="{DynamicResource flowlauncher_plugin_websearch_add}" />
123123
</StackPanel>
124124

125-
<Separator Grid.Row="2" Style="{StaticResource SettingPanelSeperatorStyle}" />
125+
<Separator Grid.Row="2" Style="{StaticResource SettingPanelSeparatorStyle}" />
126126

127127
<DockPanel
128128
Grid.Row="3"

0 commit comments

Comments
 (0)