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

Editor: Allow top-menu back button also when the file is empty #1290

Merged
merged 5 commits into from
Mar 23, 2021

Conversation

harshad1
Copy link
Collaborator

The back arrow when the file is empty does not work, the UI does not react. This is unexpected and confusing. This change makes the back arrow behave like the back button and the behavior is consistent and as expected.

@gsantner
Copy link
Owner

This change will allow to close the file without making sure it has saved successfully.

I suggest instead to check length and if trimmged.length == 0, if this is wanted.

@gsantner gsantner self-requested a review March 23, 2021 14:16
@gsantner gsantner changed the title Allow back even if file is empty Editor: Allow top-menu back button also when the file is empty Mar 23, 2021
@gsantner gsantner added this to the v2.7 milestone Mar 23, 2021
@gsantner gsantner merged commit 8973179 into gsantner:master Mar 23, 2021
@harshad1 harshad1 deleted the close_empty_file branch April 11, 2022 14:26
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.

2 participants