diff --git a/electron/src/ipc.ts b/electron/src/ipc.ts index ffc7a6f8..8d23bd14 100644 --- a/electron/src/ipc.ts +++ b/electron/src/ipc.ts @@ -29,6 +29,8 @@ export class IpcHandler { } private setFullscreen(window: BrowserWindow, _event: IpcMainInvokeEvent, flag: boolean) { - window.setFullScreen(flag); + if (window.isFullScreen() != flag) { + window.setFullScreen(flag); + } } }