Save to recent on export

This commit is contained in:
Lubos Lenco
2020-06-03 12:30:20 +02:00
parent d1f826cdd6
commit de28697d98
+6
View File
@@ -91,6 +91,12 @@ class ExportArm {
var bytes = ArmPack.encode(Project.raw);
Krom.fileSaveBytes(Project.filepath, bytes.getData());
// Save to recent
var recent = Config.raw.recent_projects;
recent.remove(Project.filepath);
recent.unshift(Project.filepath);
Config.save();
Log.info("Project saved.");
}