Skip to content

Commit

Permalink
Sets onOpen dimensions instead of fullscreen (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjohn authored Oct 1, 2024
1 parent 89c1b49 commit 92b0aaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function createWindow(handler: ReturnType<typeof createIPCHandler>) {
handler.attachWindow(window);

window.once("ready-to-show", () => {
window.maximize();
window.show();
});

if (isProd) {
Expand Down
3 changes: 2 additions & 1 deletion main/main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ class MainWindow {

this.window = createWindow("main", {
icon,
height: 740,
minWidth: 750,
width: 934,
show: false,
title: "Iron Fish Node App",
titleBarStyle: "hidden",
Expand All @@ -132,7 +134,6 @@ class MainWindow {
nodeIntegration: true,
},
});

// If a link attempts to open a new window, open it in an external browser instead.
this.window.webContents.setWindowOpenHandler(({ url }) => {
log.log("Opening URL:", url);
Expand Down

0 comments on commit 92b0aaa

Please sign in to comment.