Skip to content

Conversation

cinqmilleans
Copy link
Contributor

@cinqmilleans cinqmilleans commented May 21, 2022

Resolved / Related Issues
Drive roots use a path such as "C:\". This is the path that is used when opening a drive from the sidebar or other. But when the Up button needs to return to C:\, it actually calls C:, it's that path in the address bar.

This leads to not finding the drive, for example when we want to display the properties of the disk.
Closes #9227

Details of Changes
This pr modifies the Up_Click method to add the trailing "\" when the path ends with ":". This character is forbidden in paths, except to indicate the drive.

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

@gave92 gave92 added the ready to merge Pull requests that are approved and ready to merge label May 21, 2022
@lukeblevins lukeblevins self-requested a review May 22, 2022 01:38
Copy link
Contributor

@lukeblevins lukeblevins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 merged commit 7f1822b into files-community:main May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The up button does not use the correct path for drive roots
4 participants