Finishing touches on putting History off QML.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2024-10-11 02:14:42 +02:00
parent 448d94fee3
commit b91dbfb311
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
7 changed files with 12 additions and 119 deletions

View file

@ -59,7 +59,6 @@ class IOAPI extends Module {
})
// Settings.on("changed", this.__emitModified.bind(this))
console.log("Init IO", this)
History.on("added undone redone", this.__emitModified.bind(this))
}
@ -125,6 +124,7 @@ class IOAPI extends Module {
}
Helper.write(filename, JSON.stringify(settings))
this.#alert.show(qsTranslate("io", "Saved plot to '%1'.").arg(filename.split("/").pop()))
this.#saved = true
this.emit(new SavedEvent())
}
@ -203,6 +203,7 @@ class IOAPI extends Module {
}
Canvas.redraw()
this.#alert.show(qsTranslate("io", "Loaded file '%1'.").arg(basename))
this.#saved = true
this.emit(new LoadedEvent())
}