Skip to content
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

Fixed missing icon for network folder #9752

Merged

Conversation

DavidPerikala
Copy link
Contributor

Resolved / Related Issues
Items resolved / related issues by this PR.

Details of Changes

  • When adding a network drive item to drives section, so far we didn't attach an icon for it.
  • Fixed by adding an icon for the network folder

Validation
How did you test these changes?

  • Built and ran the app

Screenshots
Before:

image

After:

image

@DavidPerikala
Copy link
Contributor Author

Actually, I guess this functionality also needs to be added for the additional network shares. I don't see an icon being added to them, but also I don't have shares to test them. Should I do it as well?

@gave92
Copy link
Member

gave92 commented Aug 17, 2022

Hi @DavidPerikala, the icon for the sidebar items is loaded in SidebarViewModel/AddElementToSection() which ends up calling LoadDriveIcon(). The problem here was that LoadDriveIcon() was loading a file icon instead of a folder icon as default for drives. 8174c7f should be enough to fix this issue.

@gave92 gave92 requested review from yaira2 and removed request for gave92 August 17, 2022 17:45
@DavidPerikala
Copy link
Contributor Author

@gave92 Got it. Thank you.

Copy link
Member

@yaira2 yaira2 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 changed the title Fix missing icon for network folder Fixed missing icon for network folder Aug 17, 2022
@yaira2 yaira2 merged commit db03f9c into files-community:main Aug 17, 2022
@DavidPerikala DavidPerikala deleted the fix_missing_icon_network_drive branch August 17, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In Sidebar Network drives>Network showing blank icon.
3 participants