Skip to content

Keep default drive for SelectDirectoryTreeScreen as home.#557

Merged
JoeZiminski merged 2 commits into
mainfrom
set_selectdrive_to_home
Aug 4, 2025
Merged

Keep default drive for SelectDirectoryTreeScreen as home.#557
JoeZiminski merged 2 commits into
mainfrom
set_selectdrive_to_home

Conversation

@JoeZiminski

@JoeZiminski JoeZiminski commented Jul 30, 2025

Copy link
Copy Markdown
Member

This PR closes #550 by ensuring that the default path on the DirectoryTree in the select path window (used for new project and validate screen) is the home path. The problem is that the drive select (e.g. select C:, D:) was automatically triggered (I think when it is composed) calling on_select_changed which reset the directory tree to the drive.

I couldn't find a way around this except to use a flag, which isn't ideal but it works. Now the default home path is used and only reset to the drive base when the select is changed. Also, I removed the path_ argument for SelectDirectoryTree because it was never used.

Docs do not need changing and a test is updated.

@JoeZiminski JoeZiminski linked an issue Jul 30, 2025 that may be closed by this pull request
@JoeZiminski JoeZiminski requested a review from cs7-shrey July 31, 2025 21:10
@cs7-shrey

Copy link
Copy Markdown
Collaborator

Hey @JoeZiminski, you mistakenly mentioned #505, in the PR body. Can you change it to #550 ?

@JoeZiminski

Copy link
Copy Markdown
Member Author

thanks @cs7-shrey!

@JoeZiminski JoeZiminski merged commit 1c3baa8 into main Aug 4, 2025
25 of 27 checks passed
@JoeZiminski JoeZiminski deleted the set_selectdrive_to_home branch August 4, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set the default folder to the user home when setting up configs

2 participants