Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Flow.Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Loading