[studio] Fix closing tab with unsaved changes

This commit is contained in:
2025-03-24 20:43:34 -05:00
parent 13e256b3a9
commit a44c5acc4b
2 changed files with 31 additions and 0 deletions

View File

@@ -254,6 +254,7 @@ void StudioUI::drawTabs() noexcept {
if (!open) {
if (e->unsavedChanges()) {
m_closeFileConfirm.open();
++it;
} else {
e->close();
if (m_activeEditor == (*it).get()) {