Skip to content

Commit 6d8ee64

Browse files
committed
- Change trigger animation Timing
- Change HideOnStartup using Animator
1 parent f1222f9 commit 6d8ee64

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,15 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () =>
101101

102102
API.SaveAppAllSettings();
103103

104-
_mainVM.MainWindowVisibility = _settings.HideOnStartup ? Visibility.Hidden : Visibility.Visible;
104+
if (_settings.HideOnStartup)
105+
{
106+
_mainVM.Hide();
107+
}
108+
else
109+
{
110+
window.WindowAnimator();
111+
}
112+
105113
Log.Info("|App.OnStartup|End Flow Launcher startup ---------------------------------------------------- ");
106114
});
107115
}

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,8 @@ public void ToggleFlowLauncher()
713713
if (WinToggleStatus != true)
714714
{
715715
MainWindowVisibility = Visibility.Visible;
716-
((MainWindow)Application.Current.MainWindow).WindowAnimator();
717716
WinToggleStatus = true;
717+
((MainWindow)Application.Current.MainWindow).WindowAnimator();
718718
MainWindowOpacity = 1;
719719
}
720720
else

0 commit comments

Comments
 (0)