Merge pull request #3482 from onesounds/250422-FixClockwhenStartUp

Fix clock not displaying in certain situations
This commit is contained in:
DB P 2025-04-25 17:42:03 +09:00 committed by GitHub
commit 95d82b3a56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,6 +138,13 @@ namespace Flow.Launcher
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 @@ namespace Flow.Launcher
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);