setLayout to create layout-only edit mode

This commit is contained in:
garak
2023-02-01 20:28:54 -05:00
parent 90f8218c32
commit 18eb3ceb1e
12 changed files with 186 additions and 56 deletions

View File

@@ -154,5 +154,6 @@ void Map::clean() {
}
bool Map::hasUnsavedChanges() {
return !editHistory.isClean() /* || !this->layout->editHistory.isClean() */ || hasUnsavedDataChanges || !isPersistedToFile;
// !TODO: layout not working here? map needs to be in cache before the layout being edited works
return !editHistory.isClean() || !this->layout->editHistory.isClean() || hasUnsavedDataChanges || !isPersistedToFile;
}