Fix autosave on Ctrl+A

..which isn't great, because the selection isn't saved with the session.
main
Isaiah Odhner 2019-12-08 23:28:00 -05:00
parent dae22f837f
commit e29e1fba39
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ class OnCanvasSelection extends OnCanvasObject {
if (!transparency || tool_transparent_mode) {
ctx.drawImage(colored_cutout, this.x, this.y);
}
$G.triggerHandler("session-update"); // autosave
update_helper_layer();
}
update_tool_transparent_mode() {
const sourceImageData = this.source_canvas.ctx.getImageData(0, 0, this.width, this.height);