From 37881986b29d467a28b8b15d9b4e9de41211f5d5 Mon Sep 17 00:00:00 2001 From: Per Date: Mon, 13 Apr 2020 19:57:14 +0200 Subject: [PATCH] fix macos full screen mode logic --- src/main/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 264f6bb..e35dacb 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -335,6 +335,8 @@ function createWindow() { appMenuManager.setOpenImageItemEnabled(false) appMenuManager.setSaveAsItemEnabled(false) appMenuManager.setSaveItemEnabled(false) + appMenuManager.setEnterFullScreenItemEnabled(false) + appMenuManager.setExitFullScreenItemEnabled(false) mainWindow = null documentState = null initialOpenMessage = null @@ -348,6 +350,10 @@ function createWindow() { }) window.on('leave-full-screen', (_: Event) => { + window.webContents.send( + SetSidePanelVisibilityMessage.type, + new SetSidePanelVisibilityMessage(true) + ) appMenuManager.setEnterFullScreenItemEnabled(true) appMenuManager.setExitFullScreenItemEnabled(false) })