Skip to content

Fix state management of the file picker list#454

Merged
lhecker merged 1 commit into
mainfrom
dev/lhecker/347-list-state
Jun 10, 2025
Merged

Fix state management of the file picker list#454
lhecker merged 1 commit into
mainfrom
dev/lhecker/347-list-state

Conversation

@lhecker

@lhecker lhecker commented Jun 10, 2025

Copy link
Copy Markdown
Member

Closes #347

ctx.attr_background_rgba(ctx.indexed_alpha(IndexedColor::Black, 1, 4));
ctx.next_block_id_mixin(state.file_picker_pending_dir_revision);
{
ctx.next_block_id_mixin(state.file_picker_pending_dir_revision);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just a stylistic change. It doesn't change the behavior.

};
if dir != state.file_picker_pending_dir.as_path() {
state.file_picker_pending_dir = DisplayablePathBuf::from_path(dir.to_path_buf());
state.file_picker_pending_dir_revision =

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah, did we forget to bump the revision when we navigated to ..?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, exactly! I accidentally put the bump in the wrong function.

@lhecker
lhecker merged commit b93609c into main Jun 10, 2025
3 checks passed
@lhecker
lhecker deleted the dev/lhecker/347-list-state branch June 10, 2025 17:34
Lou32Verbose pushed a commit to Lou32Verbose/edit that referenced this pull request Jan 11, 2026
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.

.. item in directory browser is a bit awkward to use with keyboard

2 participants