diff --git a/emain/emain-window.ts b/emain/emain-window.ts index f3121e5e5c..d11acc12dc 100644 --- a/emain/emain-window.ts +++ b/emain/emain-window.ts @@ -260,13 +260,9 @@ export class WaveBrowserWindow extends BaseWindow { const numWindows = waveWindowMap.size; const fullConfig = await RpcApi.GetFullConfigCommand(ElectronWshClient); if (numWindows > 1 || !fullConfig.settings["window:savelastwindow"]) { - console.log("numWindows > 1 or user does not want last window saved", numWindows); if (fullConfig.settings["window:confirmclose"]) { - console.log("confirmclose", this.waveWindowId); const workspace = await WorkspaceService.GetWorkspace(this.workspaceId); - console.log("workspace", workspace); if (isNonEmptyUnsavedWorkspace(workspace)) { - console.log("workspace has no name, icon, and multiple tabs", workspace); const choice = dialog.showMessageBoxSync(this, { type: "question", buttons: ["Cancel", "Close Window"], @@ -275,15 +271,12 @@ export class WaveBrowserWindow extends BaseWindow { "Window has unsaved tabs, closing window will delete existing tabs.\n\nContinue?", }); if (choice === 0) { - console.log("user cancelled close window", this.waveWindowId); return; } } } - console.log("deleteAllowed = true", this.waveWindowId); this.deleteAllowed = true; } - console.log("canClose = true", this.waveWindowId); this.canClose = true; this.close(); }); diff --git a/emain/menu.ts b/emain/menu.ts index 2a3964eb5d..ed10cb9ab7 100644 --- a/emain/menu.ts +++ b/emain/menu.ts @@ -40,7 +40,6 @@ function getWindowWebContents(window: electron.BaseWindow): electron.WebContents async function getWorkspaceMenu(ww?: WaveBrowserWindow): Promise { const workspaceList = await RpcApi.WorkspaceListCommand(ElectronWshClient); - console.log("workspaceList:", workspaceList); const workspaceMenu: Electron.MenuItemConstructorOptions[] = [ { label: "Create Workspace",