Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jeremypw/fix cancel folder creation #1454

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jul 18, 2024

Fixes #1436

The dummy entry for an empty folder gets removed during new file creation/renaming but was not being replaced if the file never got created resulting the parent not being visible. This PR fixes that.

Also fixes issue in OS8 where an empty file no longer has a text content type so was not being shown in the sidebar.

To test 1:

  • Open an empty folder as a project
  • Right click and choose "New ... Folder"
  • Press Esc
  • Inmaster the project folder disappears. In this PR it remains expanded with a dummy item

To test 2:

  • Open an empty folder as a project
  • Right click and choose "New ... File"
  • Press Enter
  • Inmaster no addition item is shown (although it opens as a document). In this PR the new empty file is show in the sidebar.

@jeremypw jeremypw requested review from a team and removed request for a team July 18, 2024 18:42
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Can confirm the fix. Nice work!

@danirabbit danirabbit enabled auto-merge (squash) July 24, 2024 16:01
@danirabbit danirabbit merged commit bb969bf into master Jul 24, 2024
6 checks passed
@danirabbit danirabbit deleted the jeremypw/fix-cancel-folder-creation branch July 24, 2024 16:03
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.

Cancelling new folder creation in project causes parent folder to disappear from sidebar
2 participants