Remove unnecessary workspace logs (#1936)

This commit is contained in:
Evan Simkowitz 2025-02-09 13:52:24 -08:00 committed by GitHub
parent 2b519eb91e
commit cb15268fe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View file

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

View file

@ -40,7 +40,6 @@ function getWindowWebContents(window: electron.BaseWindow): electron.WebContents
async function getWorkspaceMenu(ww?: WaveBrowserWindow): Promise<Electron.MenuItemConstructorOptions[]> {
const workspaceList = await RpcApi.WorkspaceListCommand(ElectronWshClient);
console.log("workspaceList:", workspaceList);
const workspaceMenu: Electron.MenuItemConstructorOptions[] = [
{
label: "Create Workspace",