diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 381d03c1f2f..10aff050ee8 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -138,6 +138,13 @@ private async void OnLoaded(object sender, RoutedEventArgs _) else { _viewModel.Show(); + // When HideOnStartup is off and UseAnimation is on, + // there was a bug where the clock would not appear at all on the initial launch + // So we need to forcibly trigger animation here to ensure the clock is visible + if (_settings.UseAnimation) + { + WindowAnimation(); + } } // Initialize context menu & notify icon @@ -885,10 +892,10 @@ private void WindowAnimation() FillBehavior = FillBehavior.HoldEnd }; - Storyboard.SetTargetProperty(ClockOpacity, new PropertyPath(OpacityProperty)); Storyboard.SetTarget(ClockOpacity, ClockPanel); + Storyboard.SetTargetProperty(ClockOpacity, new PropertyPath(OpacityProperty)); - Storyboard.SetTargetName(thicknessAnimation, "ClockPanel"); + Storyboard.SetTarget(thicknessAnimation, ClockPanel); Storyboard.SetTargetProperty(thicknessAnimation, new PropertyPath(MarginProperty)); Storyboard.SetTarget(IconMotion, SearchIcon);