Skip to content

FileState: attempt to fix error status when opening a non valid dir#333

Merged
warpdesign merged 1 commit into
masterfrom
fix-filestate-error-status
Dec 9, 2022
Merged

FileState: attempt to fix error status when opening a non valid dir#333
warpdesign merged 1 commit into
masterfrom
fix-filestate-error-status

Conversation

@warpdesign
Copy link
Copy Markdown
Owner

@warpdesign warpdesign commented Dec 9, 2022

In this particular case, an error icon appeared in the toolbar icon:

  • read a valid directory
  • attempt to open an invalid dir

An alert would be displayed, but the file view would keep showing previous (valid) directory's files. While this is expected, the Tab Bar would incorrectly keep showing the error icon.

This has been fixed by keeping the previous error state: this way we can only show it if there was previously an error.

@warpdesign warpdesign merged commit 5c3b608 into master Dec 9, 2022
@warpdesign warpdesign deleted the fix-filestate-error-status branch December 9, 2022 09:56
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.

1 participant