Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Nov 25, 2024

  • Although unlikely for local files, FolderManager.File objects are not guaranteed to have a non-null FileInfo - this is now checked before dereferencing in is_valid_directory and icon.
  • No use is currently made of the ability to suppress hidden files in the folder (they are shown de-emphasised instead) so associated code is removed
  • is_valid_directory and is_valid_textfile are now both properties and are only determined once to improve performance.

@jeremypw jeremypw changed the title Jeremypw/minor code improvements Minor FolderManager code improvements Nov 25, 2024
@jeremypw jeremypw marked this pull request as ready for review November 25, 2024 22:08
@jeremypw jeremypw added the Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix. label Feb 8, 2025
@jeremypw jeremypw requested a review from a team February 8, 2025 18:01
@jeremypw jeremypw requested a review from ryonakano March 6, 2025 14:24
Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

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

Sorry for my late review, another tiny thing and otherwise looks good.

@jeremypw jeremypw requested a review from ryonakano March 17, 2025 12:13
@jeremypw
Copy link
Collaborator Author

@ryonakano Thanks for review! I've fixed that obviously unnecessary repetition.

@jeremypw jeremypw merged commit c793f08 into master Mar 17, 2025
6 checks passed
@jeremypw jeremypw deleted the jeremypw/minor-code-improvements branch March 17, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants