File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- #nullable enable
2-
3- using System . Collections . ObjectModel ;
1+ using System . Collections . ObjectModel ;
42using System . Threading . Tasks ;
53using System . Windows ;
64using System . Windows . Input ;
97using Flow . Launcher . Infrastructure . Hotkey ;
108using Flow . Launcher . Infrastructure . UserSettings ;
119
10+ #nullable enable
11+
1212namespace Flow . Launcher
1313{
1414 public partial class HotkeyControl
@@ -242,9 +242,10 @@ private async Task OpenHotkeyDialogAsync()
242242 HotKeyMapper . RemoveHotkey ( Hotkey ) ;
243243 }
244244
245- var dialog = new HotkeyControlDialog ( Hotkey , DefaultHotkey , WindowTitle ) ;
246-
247- dialog . Owner = Window . GetWindow ( this ) ;
245+ var dialog = new HotkeyControlDialog ( Hotkey , DefaultHotkey , WindowTitle )
246+ {
247+ Owner = Window . GetWindow ( this )
248+ } ;
248249
249250 await dialog . ShowAsync ( ) ;
250251 switch ( dialog . ResultType )
Original file line number Diff line number Diff line change 55using System . Windows ;
66using CommunityToolkit . Mvvm . Input ;
77using Flow . Launcher . Core . Plugin ;
8- using Flow . Launcher . Infrastructure ;
98using Flow . Launcher . Infrastructure . UserSettings ;
109using Flow . Launcher . Plugin ;
1110using Flow . Launcher . ViewModel ;
@@ -116,6 +115,7 @@ private async Task OpenHelperAsync()
116115 {
117116 var helpDialog = new ContentDialog ( )
118117 {
118+ Owner = Application . Current . MainWindow ,
119119 Content = new StackPanel
120120 {
121121 Children =
@@ -146,7 +146,6 @@ private async Task OpenHelperAsync()
146146 }
147147 }
148148 } ,
149-
150149 PrimaryButtonText = ( string ) Application . Current . Resources [ "commonOK" ] ,
151150 CornerRadius = new CornerRadius ( 8 ) ,
152151 Style = ( Style ) Application . Current . Resources [ "ContentDialog" ]
You can’t perform that action at this time.
0 commit comments