-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Code Quality: Refactoring of SidebarControl.xaml.cs #10467
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
On home section, if you click on a tag color on the sidebar, it will throw a notification error and the below error on Visual Studio. However on the last preview there is no error.
|
I cannot seem to reproduce this error. @BanCrash is it still an issue for you? Is it reproductible 100% ? |
That error has been fixed by @hez2010 in #10503, just make you have merged |
…iles into MoveItemRefactoring
Co-authored-by: yaira2 <39923744+yaira2@users.noreply.github.com>
If you agree with the changes in 496b161, LGTM. |
All good for me! |
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
@QuaintMako Does expanding/collapsing sidebar sections crash the app for you? |
@@ -510,12 +448,10 @@ private async void Sidebar_ItemInvoked(NavigationView sender, NavigationViewItem | |||
return; | |||
} | |||
|
|||
string navigationPath = args.InvokedItemContainer.Tag?.ToString(); |
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.
Yeah removing null checks.. always risky :)
@yaira2 I actually don't have a crash expanding/collapsing the sidebar section... Could you open an issue with the logs? |
Collapsing the favorite section:
|
I cannot seem to reproduce it at all. |
Funny. Yeah adding back that null check fixes the issue for me. |
Resolved / Related Issues
Items resolved / related issues by this PR.
What has been done
src/Files.App/UserControls/SidebarControl.xaml.cs
extensively.Validation
How did you test these changes?