Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Flow.Launcher/HotkeyControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable

using System.Collections.ObjectModel;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
Expand All @@ -9,6 +7,8 @@
using Flow.Launcher.Infrastructure.Hotkey;
using Flow.Launcher.Infrastructure.UserSettings;

#nullable enable

namespace Flow.Launcher
{
public partial class HotkeyControl
Expand Down Expand Up @@ -242,7 +242,11 @@ private async Task OpenHotkeyDialogAsync()
HotKeyMapper.RemoveHotkey(Hotkey);
}

var dialog = new HotkeyControlDialog(Hotkey, DefaultHotkey, WindowTitle);
var dialog = new HotkeyControlDialog(Hotkey, DefaultHotkey, WindowTitle)
{
Owner = Window.GetWindow(this)
};

await dialog.ShowAsync();
switch (dialog.ResultType)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Windows;
using CommunityToolkit.Mvvm.Input;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
using Flow.Launcher.ViewModel;
Expand Down Expand Up @@ -116,6 +115,7 @@ private async Task OpenHelperAsync()
{
var helpDialog = new ContentDialog()
{
Owner = Application.Current.MainWindow,
Content = new StackPanel
{
Children =
Expand Down Expand Up @@ -146,7 +146,6 @@ private async Task OpenHelperAsync()
}
}
},

PrimaryButtonText = (string)Application.Current.Resources["commonOK"],
CornerRadius = new CornerRadius(8),
Style = (Style)Application.Current.Resources["ContentDialog"]
Expand Down
Loading