[nostalgia/studio] Get save working
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user