From add99c4d6d29e0adc6bfa21d56eae48f9d9545c9 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 14 Nov 2021 18:13:03 +0900 Subject: [PATCH] - Change MainwindowVisibility to using show() - HotkeyMapper, CustomQueryHotkeySetting. --- Flow.Launcher/CustomQueryHotkeySetting.xaml | 137 +++++++++++++----- .../CustomQueryHotkeySetting.xaml.cs | 1 + Flow.Launcher/Helper/HotKeyMapper.cs | 2 +- 3 files changed, 105 insertions(+), 35 deletions(-) diff --git a/Flow.Launcher/CustomQueryHotkeySetting.xaml b/Flow.Launcher/CustomQueryHotkeySetting.xaml index 23bd89906..e9d486fe1 100644 --- a/Flow.Launcher/CustomQueryHotkeySetting.xaml +++ b/Flow.Launcher/CustomQueryHotkeySetting.xaml @@ -1,57 +1,126 @@ - + - + - + - + - + - - + + - + - - - - + + + + - - - - diff --git a/Flow.Launcher/CustomQueryHotkeySetting.xaml.cs b/Flow.Launcher/CustomQueryHotkeySetting.xaml.cs index 0109474e1..e1f69d117 100644 --- a/Flow.Launcher/CustomQueryHotkeySetting.xaml.cs +++ b/Flow.Launcher/CustomQueryHotkeySetting.xaml.cs @@ -92,6 +92,7 @@ namespace Flow.Launcher { App.API.ChangeQuery(tbAction.Text); Application.Current.MainWindow.Visibility = Visibility.Visible; + Application.Current.MainWindow.Opacity = 1; Application.Current.MainWindow.Focus(); } diff --git a/Flow.Launcher/Helper/HotKeyMapper.cs b/Flow.Launcher/Helper/HotKeyMapper.cs index fe25ecf18..70d71bb32 100644 --- a/Flow.Launcher/Helper/HotKeyMapper.cs +++ b/Flow.Launcher/Helper/HotKeyMapper.cs @@ -78,7 +78,7 @@ namespace Flow.Launcher.Helper if (mainViewModel.ShouldIgnoreHotkeys()) return; - mainViewModel.MainWindowVisibility = Visibility.Visible; + mainViewModel.Show(); mainViewModel.ChangeQueryText(hotkey.ActionKeyword, true); }); }