From 5d81a6b077590d34613a40a3d655291ab3e12046 Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 18 Jul 2023 07:52:48 +0100 Subject: [PATCH] fix: ingore set windows min size when in full screen (#542) In Win, when the windows is full screen, calling the setMinSize from tauri causes the window to move and stop to be in full screen. --- frontend/src/tauri/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/tauri/helpers.ts b/frontend/src/tauri/helpers.ts index cd0e78cd..66907a0c 100644 --- a/frontend/src/tauri/helpers.ts +++ b/frontend/src/tauri/helpers.ts @@ -29,7 +29,7 @@ export const usePlatform = (): Platform | undefined => { }; export const setWindowMinSize = (width: number, height: number): void => { - appWindow.setMinSize(new LogicalSize(width, height)); + if (!appWindow.isFullscreen()) appWindow.setMinSize(new LogicalSize(width, height)); }; export const setWindowTitle = (title: string): void => {