-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Fix clock not displaying in certain situations #3482
Conversation
This comment has been minimized.
This comment has been minimized.
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughA conditional check was added to the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Could we just set the location of the clock on load rather than running the animation? |
You want to just show it without any animation? This involves changing the alpha value and making an exception for the initial launch timing, so it could potentially affect the existing show/hide logic. Are you sure that’s okay? Later on, during maintenance, we’ll probably have to come back and work on this part separately. If you’re fine with that, I’ll go ahead and do it. |
@coderabbitai Review it. Please also review taooceros's suggestion and include that in the discussion. |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed:
Length of output: 43842 @onesounds I've reviewed the code change and taooceros's suggestion. Here's my analysis: Current Implementation (Running Animation)Your implementation calls if (_settings.UseAnimation)
{
WindowAnimation();
} Alternative Suggestion (Direct Positioning)taooceros suggested directly setting the clock's position/opacity rather than running the animation. This would mean:
Analysis of Both ApproachesCurrent implementation (pros/cons):✅ Reuses existing animation logic Direct positioning (pros/cons):✅ Potentially more efficient (no animation overhead) RecommendationYour current approach is likely the safer option because:
Unless there's a specific performance concern with the animation, sticking with the current implementation keeps the code more consistent and maintainable. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🥷 Code experts: Jack251970 Jack251970, onesounds have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
I tried other methods but none of them can help. If you think this can fix all things, I agree with you to use this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where the clock fails to appear on first launch when animation is enabled by triggering the window animation explicitly in the OnLoaded event.
- Forcibly calls WindowAnimation() when _settings.UseAnimation is true
- Ensures initialization of the clock's visibility on startup
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where the clock did not display on the first launch when animation is enabled by forcibly triggering the animation in OnLoaded.
- Forces animation trigger in OnLoaded when UseAnimation is enabled.
- Updates Storyboard target assignments in WindowAnimation for clarity.
This comment has been minimized.
This comment has been minimized.
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
🛠 Fix clock not displaying on first launch (when animation is enabled)
HideOnStartup = off
andAnimation = on
, there was a bug where the clock would not appear at all on the initial launch.OnLoaded
, ensuring the clock becomes visible on the first load.If you slow down the animation duration, you’ll notice it’s actually running.
OnLoaded
can make the animation look better.However, doing so caused a slight delay in visibility when animation was disabled.
Since the clock does show up correctly, and this is the key UX issue, no further changes were made.
💡 UX Consideration
"The animation was too fast because your PC is so fast." 😄