Skip to content

Commit 406605a

Browse files
quextentrmartin4
authored andcommitted
Fix desktop not launching (#17485)
(cherry picked from commit 5f27452)
1 parent da846bd commit 406605a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/desktop/src/platform/popup-modal-styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ export function applyMainWindowStyles(window: BrowserWindow, existingWindowState
4545
// need to guard against null/undefined values
4646

4747
if (existingWindowState?.width && existingWindowState?.height) {
48-
window.setSize(existingWindowState.width, existingWindowState.height);
48+
window.setSize(Math.floor(existingWindowState.width), Math.floor(existingWindowState.height));
4949
}
5050

5151
if (existingWindowState?.x && existingWindowState?.y) {
52-
window.setPosition(existingWindowState.x, existingWindowState.y);
52+
window.setPosition(Math.floor(existingWindowState.x), Math.floor(existingWindowState.y));
5353
}
5454

5555
window.setWindowButtonVisibility?.(true);

0 commit comments

Comments
 (0)