Skip to content

Conversation

@hishitetsu
Copy link
Member

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.

  • Closes #

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.

  1. Open a folder that has a custom background image.
  2. Navigate to Home.
  3. See the background image disappears.

@yaira2 yaira2 changed the title Fix: Fixed an issue where folder background image would remain when navigating to Home page Code Quality: Fixed an issue where folder background image would remain when navigating to Home page Jul 25, 2024
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 added the ready to merge Pull requests that are approved and ready to merge label Jul 25, 2024
Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

Isn't this a bit odd?
Why not just clear the value of the property to null instead of calling the method?

@hishitetsu
Copy link
Member Author

Isn't this a bit odd? Why not just clear the value of the property to null instead of calling the method?

The setter of FolderBackgroundImageSource is private.

Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

Alright, I'll think of how to flash current state during navigation.
LGTM, code wise.

@yaira2 yaira2 merged commit 9244a1f into files-community:main Jul 25, 2024
@hishitetsu hishitetsu deleted the CheckBackgroundImageInHome branch July 25, 2024 13:39
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.

3 participants