#issue-fix The new menu will ask if you want to erase the current content but it will ignore the answer
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user