diff --git a/src/editor/Editor.ts b/src/editor/Editor.ts index 6f3f93e6..ea535467 100644 --- a/src/editor/Editor.ts +++ b/src/editor/Editor.ts @@ -131,8 +131,8 @@ export class Editor { this._activeViewport = v; } - clear() { - this.backup.clear(); + async clear() { + await this.backup.clear(); ipcRenderer.invoke('reload'); }