mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add Delay to Opacity when Main Window Deactive
This commit is contained in:
parent
a301d8efab
commit
eaf0649d97
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ namespace Flow.Launcher.Helper
|
|||
{
|
||||
var window = Application.Current.Windows.OfType<Window>().FirstOrDefault(x => x.GetType() == typeof(T))
|
||||
?? (T)Activator.CreateInstance(typeof(T), args);
|
||||
Application.Current.MainWindow.Hide();
|
||||
|
||||
// Fix UI bug
|
||||
// Add `window.WindowState = WindowState.Normal`
|
||||
|
|
|
|||
|
|
@ -315,9 +315,10 @@ namespace Flow.Launcher
|
|||
}
|
||||
|
||||
|
||||
private void OnDeactivated(object sender, EventArgs e)
|
||||
private async void OnDeactivated(object sender, EventArgs e)
|
||||
{
|
||||
_viewModel.Save();
|
||||
await Task.Delay(100);
|
||||
if (_settings.HideWhenDeactive)
|
||||
{
|
||||
_viewModel.Hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue