Fixed mode switch bug

This commit is contained in:
unsettledgames 2020-09-12 11:45:27 +02:00
parent 232e08f84d
commit a56c9576a9
2 changed files with 2 additions and 4 deletions

View File

@ -26,11 +26,8 @@ function switchMode(currentMode, mustConfirm = true) {
//switch to basic mode
else {
//if there is a current layer (a document is active)
if (currentLayer) {
//confirm with user before flattening image
if (mustConfirm ) {
if (!confirm('Switching to basic mode will flatten all the visible layers. Are you sure you want to continue?')) {

View File

@ -244,9 +244,10 @@ class Layer {
layer.menuEntry.classList.add("selected-layer");
currentLayer = layer;
}
/*
canvas = currentLayer.canvas;
context = currentLayer.context;
*/
}
toggleLock() {