#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
|
||||
* @returns {void}
|
||||
*/
|
||||
clickClear () {
|
||||
async clickClear () {
|
||||
const [x, y] = this.configObj.curConfig.dimensions;
|
||||
const ok = seConfirm(this.uiStrings.notification.QwantToClear);
|
||||
if (!ok) {
|
||||
const ok = await seConfirm(this.uiStrings.notification.QwantToClear);
|
||||
if (ok === 'Cancel') {
|
||||
return;
|
||||
}
|
||||
this.leftPanelHandlers.clickSelect();
|
||||
|
|
Loading…
Reference in New Issue