Auto-save the current timeline after changes and on exit

This auto-saved timeline is loaded when the replay is opened the next time.
This commit is contained in:
Jonas Herzig
2018-12-18 15:04:21 +01:00
parent 3319d4263c
commit 3f7818aeec
2 changed files with 100 additions and 1 deletions

View File

@@ -229,6 +229,7 @@ public class GuiKeyframeRepository extends GuiScreen implements Closeable {
timelines.putAll(replayFile.getTimelines(registry));
for (Map.Entry<String, Timeline> entry : timelines.entrySet()) {
if (entry.getKey().isEmpty()) continue; // don't show auto-save slot
list.getListPanel().addElements(null, new Entry(entry.getKey()));
}
}