Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ const createWindow = () => {
// and load the index.html of the app.
mainWindow.loadURL(`file://${__dirname}/index.html`);

// Open the DevTools.
if (isDevMode || process.argv.includes('--devtools')) {
// Keep development windows uncluttered by default. DevTools remain
// available from View -> Toggle Developer Tools or Cmd/Ctrl+Alt+I.
if (process.argv.includes('--devtools')) {
mainWindow.webContents.openDevTools();
}

Expand Down Expand Up @@ -585,6 +586,11 @@ const createWindow = () => {
) {
mainWindow.hide();
} else {
if (isDevMode) {
// Fill the usable desktop without entering macOS full-screen mode.
mainWindow.setFullScreen(false);
mainWindow.maximize();
}
mainWindow.show();
}

Expand Down