Skip to content

Commit 2462b6a

Browse files
committed
feat: maximize on launch
1 parent 23f6629 commit 2462b6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@ function createWindow(): void {
2121
minHeight: 600,
2222
backgroundColor: '#0a0a0a',
2323
titleBarStyle: 'hiddenInset',
24+
show: false,
2425
webPreferences: {
2526
nodeIntegration: false,
2627
contextIsolation: true,
2728
preload: path.join(__dirname, 'preload.js'),
2829
},
2930
});
3031

32+
mainWindow.once('ready-to-show', () => {
33+
mainWindow?.maximize();
34+
mainWindow?.show();
35+
});
36+
3137
// Set up menu for keyboard shortcuts
3238
const template: MenuItemConstructorOptions[] = [
3339
{

0 commit comments

Comments
 (0)