Skip to content

Minor FolderManager code improvements#1489

Merged
jeremypw merged 13 commits intomasterfrom
jeremypw/minor-code-improvements
Mar 17, 2025
Merged

Minor FolderManager code improvements#1489
jeremypw merged 13 commits intomasterfrom
jeremypw/minor-code-improvements

Conversation

@jeremypw
Copy link
Copy Markdown
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
Comment thread src/FolderManager/File.vala
Comment thread src/FolderManager/FolderItem.vala Outdated
@jeremypw jeremypw requested a review from ryonakano March 6, 2025 14:24
Copy link
Copy Markdown
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.

Comment thread src/FolderManager/File.vala
@jeremypw jeremypw requested a review from ryonakano March 17, 2025 12:13
@jeremypw
Copy link
Copy Markdown
Collaborator Author

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

@jeremypw jeremypw merged commit c793f08 into master Mar 17, 2025
@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.

3 participants