Skip to content

Fix clock not displaying in certain situations #3482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 25, 2025
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