bugfix: block upload by drag&drop gcode upload during a print (fixed #163)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
87e1ccb384
commit
28998090e6
@ -618,7 +618,7 @@
|
|||||||
this.dropzone.visibility = 'hidden';
|
this.dropzone.visibility = 'hidden';
|
||||||
this.dropzone.opacity = 0;
|
this.dropzone.opacity = 0;
|
||||||
|
|
||||||
if (!this.is_printing && e.dataTransfer.files.length) {
|
if (e.dataTransfer.files.length) {
|
||||||
await this.doUploadFile(e.dataTransfer.files[0]);
|
await this.doUploadFile(e.dataTransfer.files[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user