Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit 226d485

Browse files
authored
Merge pull request #46 from jayeonsu/ShowContextMenu
Add "Show context menu"
2 parents ae5956f + 7208f29 commit 226d485

8 files changed

Lines changed: 1638 additions & 7 deletions

File tree

EverythingSettings.xaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<RowDefinition />
1616
<RowDefinition />
1717
<RowDefinition />
18+
<RowDefinition />
1819
<RowDefinition Height="Auto" />
1920
</Grid.RowDefinitions>
2021
<Grid.ColumnDefinitions>
@@ -40,36 +41,44 @@
4041
HorizontalAlignment="Left"
4142
Content="{DynamicResource flowlauncher_plugin_everything_launch_hidden}" />
4243

43-
<Label
44+
<CheckBox
45+
x:Name="ShowWindowsContextMenu"
4446
Grid.Row="2"
47+
Grid.ColumnSpan="3"
48+
Margin="10,6,18,6"
49+
HorizontalAlignment="Left"
50+
Content="{DynamicResource flowlauncher_plugin_everything_show_windows_context_menu}" />
51+
52+
<Label
53+
Grid.Row="3"
4554
Margin="10,6,6,6"
4655
HorizontalAlignment="Left"
4756
VerticalAlignment="Center"
4857
Content="{DynamicResource flowlauncher_plugin_everything_editor_path}" />
4958
<Label
5059
x:Name="EditorPath"
51-
Grid.Row="2"
60+
Grid.Row="3"
5261
Grid.Column="1"
5362
Margin="10"
5463
HorizontalAlignment="Left"
5564
VerticalAlignment="Center" />
5665
<Button
5766
x:Name="OpenEditorPath"
58-
Grid.Row="2"
67+
Grid.Row="3"
5968
Grid.Column="2"
6069
MinWidth="80"
6170
Margin="10"
6271
HorizontalAlignment="Left"
6372
Click="EditorPath_Clicked"
6473
Content="..." />
6574
<TextBlock
66-
Grid.Row="3"
75+
Grid.Row="4"
6776
Margin="10"
6877
VerticalAlignment="Center"
6978
Text="{DynamicResource flowlauncher_plugin_everything_sort_by}" />
7079

7180
<ComboBox
72-
Grid.Row="3"
81+
Grid.Row="4"
7382
Grid.Column="1"
7483
Width="200"
7584
Margin="10"

EverythingSettings.xaml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ private void View_Loaded(object sender, RoutedEventArgs re)
4545
settings.LaunchHidden = false;
4646
};
4747

48+
ShowWindowsContextMenu.IsChecked = settings.ShowWindowsContextMenu;
49+
50+
ShowWindowsContextMenu.Checked += (o, e) =>
51+
{
52+
settings.ShowWindowsContextMenu = true;
53+
};
54+
55+
ShowWindowsContextMenu.Unchecked += (o, e) =>
56+
{
57+
settings.ShowWindowsContextMenu = false;
58+
};
59+
4860
EditorPath.Content = settings.EditorPath;
4961
}
5062

0 commit comments

Comments
 (0)