Skip to content

Commit a09f843

Browse files
committed
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.
1 parent 20bf42d commit a09f843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/tauri/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const usePlatform = (): Platform | undefined => {
2929
};
3030

3131
export const setWindowMinSize = (width: number, height: number): void => {
32-
appWindow.setMinSize(new LogicalSize(width, height));
32+
if (!appWindow.isFullscreen()) appWindow.setMinSize(new LogicalSize(width, height));
3333
};
3434

3535
export const setWindowTitle = (title: string): void => {

0 commit comments

Comments
 (0)