Skip to content

Commit d21ffce

Browse files
committed
Use get window to get owner
1 parent 309a710 commit d21ffce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public SettingsPanePluginsViewModel(Settings settings)
111111
.ToList();
112112

113113
[RelayCommand]
114-
private async Task OpenHelperAsync()
114+
private async Task OpenHelperAsync(Button button)
115115
{
116116
var helpDialog = new ContentDialog()
117117
{
118-
Owner = Application.Current.MainWindow,
118+
Owner = Window.GetWindow(button),
119119
Content = new StackPanel
120120
{
121121
Children =

Flow.Launcher/SettingPages/Views/SettingsPanePlugins.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
Height="34"
5858
Margin="0 0 20 0"
5959
Command="{Binding OpenHelperCommand}"
60+
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
6061
Content=""
6162
FontFamily="{DynamicResource SymbolThemeFontFamily}"
6263
FontSize="14" />

0 commit comments

Comments
 (0)