mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-11 19:35:38 -05:00
Show unsaved changes warning for map list and layout-only edits
This commit is contained in:
@@ -256,7 +256,7 @@ void Map::clean() {
|
||||
this->hasUnsavedDataChanges = false;
|
||||
}
|
||||
|
||||
bool Map::hasUnsavedChanges() {
|
||||
bool Map::hasUnsavedChanges() const {
|
||||
return !editHistory.isClean() || this->layout->hasUnsavedChanges() || hasUnsavedDataChanges || !isPersistedToFile;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user