mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
Stop maximizing editor window on open
This commit is contained in:
committed by
webadderall
parent
407b6858c2
commit
eda0b26a56
+3
-3
@@ -274,10 +274,11 @@ export function createHudOverlayWindow(): BrowserWindow {
|
||||
|
||||
export function createEditorWindow(): BrowserWindow {
|
||||
const isMac = process.platform === "darwin";
|
||||
const { width, height } = getScreen().getPrimaryDisplay().workAreaSize;
|
||||
|
||||
const win = new BrowserWindow({
|
||||
width: 1200,
|
||||
height: 800,
|
||||
width: Math.round(width * 0.8),
|
||||
height: Math.round(height * 0.8),
|
||||
minWidth: 800,
|
||||
minHeight: 600,
|
||||
...(process.platform !== "darwin" && {
|
||||
@@ -305,7 +306,6 @@ export function createEditorWindow(): BrowserWindow {
|
||||
|
||||
win.once("ready-to-show", () => {
|
||||
win.show();
|
||||
win.maximize();
|
||||
});
|
||||
|
||||
win.webContents.on("did-finish-load", () => {
|
||||
|
||||
Reference in New Issue
Block a user