mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed mode switch bug
This commit is contained in:
@@ -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?')) {
|
||||
|
Reference in New Issue
Block a user