Move save and load into config class

This commit is contained in:
Cooldude2606 committed 2025-05-12 21:32:44 +01:00
1 parent 17db53403a
commit 726a3538c2
8 files changed
+55 -34

No files matched your search

+1 -5
View File
@@ -581,12 +581,8 @@ export default class Controller {
});
private async _saveDataInternal() {
if (this.config.dirty) {
this.config.dirty = false;
await lib.safeOutputFile(this.config.filepath!, JSON.stringify(this.config, null, "\t"));
}
await Promise.all([
this.config.save(),
this.systems.save(),
this.hosts.save(),
this.instances.save(),