-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix: Fixed issue where toolbar button sometimes had the wrong icon state #17030
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
Conversation
yaira2
left a comment
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.
I can no longer reproduce the issue with these changes, LGTM.
@jpozo20 thank you for contributing to Files 🎉
|
Hmm, it looks like it's still occurring. |
|
@yaira2 how so? I tested image files, folders and some binaries files and enabled icons show correctly. |
|
It's hard to consistently reproduce hence the reason I thought it was resolved. I'm usually able to reproduce the issue by unfocusing and refocusing an image file a bunch of times. |
|
I tried that and other things but I cannot longer reproduce it. else if (IsHighContrast is true || _isOwnerEnabled is false || IsEnabled is false)
{
VisualStateManager.GoToState(this, OutlineTypeStateName, true);
VisualStateManager.GoToState(this, DisabledStateName, true);
return;
} |
|
One thing that's different about images, is that there are a couple of secondary actions added to the toolbar. |
|
@jpozo20 is it okay if I push an alternative fix to your branch for testing? |
|
@yaira2 It's okay. Do I need to do something to allow the push? |
|
@yaira2 I've been busy and did not have time to check but I see you have fixed it in the other PR |
|
This can be closed now 🙂 |
|
@jpozo20 thanks! Please let me know if you have any thoughts on my implementation. |
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.