#issue-fix The new menu will ask if you want to erase the current content but it will ignore the answer

master
Agriya Dev5 2021-01-04 12:09:45 +05:30
parent 6cdb3389bb
commit 12ad6e4d55
1 changed files with 3 additions and 3 deletions

View File

@ -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();