[studio] Fix closing tab with unsaved changes

This commit is contained in:
2025-03-24 20:43:34 -05:00
parent 4803cca334
commit 36fc25fb7e
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()) {