pivot fix

This commit is contained in:
shweet committed 2026-06-13 14:56:02 -04:00
1 parent 71e799f536
commit 0ea0afe1e3
7 files changed
+50 -14

No files matched your search

+11
View File
@@ -178,6 +178,17 @@ namespace anm2ed
autosave_files_write();
}
void Manager::autosave_file_clear(int index)
{
auto document = get(index);
if (!document) return;
auto autosavePath = document->autosave_path_get();
autosaveFiles.erase(std::remove(autosaveFiles.begin(), autosaveFiles.end(), autosavePath), autosaveFiles.end());
autosave_file_remove(autosavePath);
autosave_files_write();
}
void Manager::close(int index)
{
if (!vector::in_bounds(documents, index)) return;