#issue-fix The new menu will ask if you want to erase the current content but it will ignore the answer
parent
6cdb3389bb
commit
12ad6e4d55
|
@ -1071,10 +1071,10 @@ class Editor extends EditorStartup {
|
||||||
* @fires module:svgcanvas.SvgCanvas#event:ext_onNewDocument
|
* @fires module:svgcanvas.SvgCanvas#event:ext_onNewDocument
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
clickClear () {
|
async clickClear () {
|
||||||
const [x, y] = this.configObj.curConfig.dimensions;
|
const [x, y] = this.configObj.curConfig.dimensions;
|
||||||
const ok = seConfirm(this.uiStrings.notification.QwantToClear);
|
const ok = await seConfirm(this.uiStrings.notification.QwantToClear);
|
||||||
if (!ok) {
|
if (ok === 'Cancel') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.leftPanelHandlers.clickSelect();
|
this.leftPanelHandlers.clickSelect();
|
||||||
|
|
Loading…
Reference in New Issue