[nostalgia/studio] Get save working

This commit is contained in:
2022-02-19 01:45:37 -06:00
parent 5b7dacd51f
commit 56ec063658
12 changed files with 73 additions and 27 deletions

View File

@@ -61,6 +61,12 @@ studio::UndoStack *TileSheetEditorImGui::undoStack() noexcept {
}
void TileSheetEditorImGui::saveItem() {
const auto err = m_tileSheetEditor.model()->saveFile();
if (!err) {
this->setUnsavedChanges(false);
} else {
oxErrorf("Could not save file {}: {}", m_itemPath, toStr(err));
}
}
void TileSheetEditorImGui::drawTileSheet(const geo::Vec2 &fbSize) noexcept {