Skip to content

Commit cb15268

Browse files
authored
Remove unnecessary workspace logs (#1936)
1 parent 2b519eb commit cb15268

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

emain/emain-window.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,9 @@ export class WaveBrowserWindow extends BaseWindow {
260260
const numWindows = waveWindowMap.size;
261261
const fullConfig = await RpcApi.GetFullConfigCommand(ElectronWshClient);
262262
if (numWindows > 1 || !fullConfig.settings["window:savelastwindow"]) {
263-
console.log("numWindows > 1 or user does not want last window saved", numWindows);
264263
if (fullConfig.settings["window:confirmclose"]) {
265-
console.log("confirmclose", this.waveWindowId);
266264
const workspace = await WorkspaceService.GetWorkspace(this.workspaceId);
267-
console.log("workspace", workspace);
268265
if (isNonEmptyUnsavedWorkspace(workspace)) {
269-
console.log("workspace has no name, icon, and multiple tabs", workspace);
270266
const choice = dialog.showMessageBoxSync(this, {
271267
type: "question",
272268
buttons: ["Cancel", "Close Window"],
@@ -275,15 +271,12 @@ export class WaveBrowserWindow extends BaseWindow {
275271
"Window has unsaved tabs, closing window will delete existing tabs.\n\nContinue?",
276272
});
277273
if (choice === 0) {
278-
console.log("user cancelled close window", this.waveWindowId);
279274
return;
280275
}
281276
}
282277
}
283-
console.log("deleteAllowed = true", this.waveWindowId);
284278
this.deleteAllowed = true;
285279
}
286-
console.log("canClose = true", this.waveWindowId);
287280
this.canClose = true;
288281
this.close();
289282
});

emain/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ function getWindowWebContents(window: electron.BaseWindow): electron.WebContents
4040

4141
async function getWorkspaceMenu(ww?: WaveBrowserWindow): Promise<Electron.MenuItemConstructorOptions[]> {
4242
const workspaceList = await RpcApi.WorkspaceListCommand(ElectronWshClient);
43-
console.log("workspaceList:", workspaceList);
4443
const workspaceMenu: Electron.MenuItemConstructorOptions[] = [
4544
{
4645
label: "Create Workspace",

0 commit comments

Comments
 (0)