mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3482 from onesounds/250422-FixClockwhenStartUp
Fix clock not displaying in certain situations
This commit is contained in:
commit
95d82b3a56
1 changed files with 9 additions and 2 deletions
|
|
@ -138,6 +138,13 @@ namespace Flow.Launcher
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_viewModel.Show();
|
_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
|
// Initialize context menu & notify icon
|
||||||
|
|
@ -885,10 +892,10 @@ namespace Flow.Launcher
|
||||||
FillBehavior = FillBehavior.HoldEnd
|
FillBehavior = FillBehavior.HoldEnd
|
||||||
};
|
};
|
||||||
|
|
||||||
Storyboard.SetTargetProperty(ClockOpacity, new PropertyPath(OpacityProperty));
|
|
||||||
Storyboard.SetTarget(ClockOpacity, ClockPanel);
|
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.SetTargetProperty(thicknessAnimation, new PropertyPath(MarginProperty));
|
||||||
|
|
||||||
Storyboard.SetTarget(IconMotion, SearchIcon);
|
Storyboard.SetTarget(IconMotion, SearchIcon);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue