-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Awake Updates - PROMETHEAN_09082024
#34717
Conversation
dend
commented
Sep 8, 2024
•
edited
Loading
edited
- PowerToys Awake - unexpected icon behaviors #34148
- PowerToys Awake standalone Tray Icon reports incorrrect time #34616
Hi I tested these changes with installer and debugger. I tested at least 10 times with each one. Icon did not appear 2 times. These are logs.
Since it didn't happen every time, I couldn't find the root cause of it with testing. However, when I add the following line of code to Also, when the icon is visible, it is not clickable in most of my attempts. Lastly, when the icon is visible, when I change Awake mode from settings (even if it is not clickable) icon changes. That looks good to me. |
@gokcekantarci did you pull the latest changes from this PR specifically and compiled the build? You can even go as far as clone my fork and check there. I've seen folks previously state that they tested the PR when they were testing the I cannot reproduce the issue you're referring to in my build. Are you saying that when you're setting the Also - did the icon not show at startup, when you changed the settings, or due some other behavior? Did you change it through the Settings app? The log that you are showing is telling me that the error was triggered on exit - can you share the full logs here, please? Re: clickable icon, are you launching the project from VS with PowerToys running, or separately through the command line/app executable? |
Hi @dend,
I first cloned your forked repo and tested with main branch in there. Latest commit id is 83e0be7.
I agree with you. I think it is appropriate for writing this error log and not showing icon when encounters this kind of error. But I saw this error twice after trying it maybe 30 times. I think a suitable default behavior can be added to this. For example, if such an problem occurs, Awake can be run in passive mode and the icon can be also set in this way.
I don't know exactly how the issue occurs. When it happened for the first time, I examined the logs and saw the same thing as I shared above. Then I tried different things to reproduce the error. These are like restarting the PC, restarting Powertoys, deleting
I tested with debugger in VS and also I tested with exe after building code and installer. |
@gokcekantarci I just tested this on Windows 10 and the context menu correctly appears, launched directly from the debugger. |
But I also got it into a state where it does not show the menu, so something is definitely off @gokcekantarci. Investigating. |
@gokcekantarci did some more digging and I found the issue - it's a problem with the synchronization context I was using when trying to create the shell icon. The |
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.
LGTM! Thank you for the fix.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Rubberstamp LGTM! The most in depth review was done by Gokce, but I did some quick tests as well. Thank you for the contribution!