Fixing double redraw when opening a file.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adsooi 2024-10-15 20:39:03 +02:00
parent aeaaba759f
commit a85a4721e3
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
4 changed files with 5 additions and 5 deletions

View file

@ -530,7 +530,7 @@ class CanvasAPI extends Module {
if(this.#redrawCount === currentRedrawCount)
callback(imgData)
else
console.log("2Discard render of", imgData.source, this.#redrawCount, currentRedrawCount)
console.log("1Discard render of", imgData.source, this.#redrawCount, currentRedrawCount)
})
} else {
// Callback directly

View file

@ -201,7 +201,6 @@ class IOAPI extends Module {
// TODO: Error handling
return
}
Canvas.redraw()
this.#alert.show(qsTranslate("io", "Loaded file '%1'.").arg(basename))
this.#saved = true
this.emit(new LoadedEvent())