mirror of
https://github.com/wavetermdev/waveterm
synced 2026-04-21 14:37:16 +00:00
Remove unnecessary workspace logs (#1936)
This commit is contained in:
parent
2b519eb91e
commit
cb15268fe6
2 changed files with 0 additions and 8 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue