Browse Source

Fix desktop not launching (#17485)

(cherry picked from commit 5f27452ac2)
hotfix-rc-desktop^2 desktop-v2025.11.2
Bernd Schoolmann 4 weeks ago committed by Todd Martin
parent
commit
406605a9ce
No known key found for this signature in database
GPG Key ID: 663E7AF5C839BC8F
  1. 4
      apps/desktop/src/platform/popup-modal-styles.ts

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

@ -45,11 +45,11 @@ export function applyMainWindowStyles(window: BrowserWindow, existingWindowState @@ -45,11 +45,11 @@ export function applyMainWindowStyles(window: BrowserWindow, existingWindowState
// need to guard against null/undefined values
if (existingWindowState?.width && existingWindowState?.height) {
window.setSize(existingWindowState.width, existingWindowState.height);
window.setSize(Math.floor(existingWindowState.width), Math.floor(existingWindowState.height));
}
if (existingWindowState?.x && existingWindowState?.y) {
window.setPosition(existingWindowState.x, existingWindowState.y);
window.setPosition(Math.floor(existingWindowState.x), Math.floor(existingWindowState.y));
}
window.setWindowButtonVisibility?.(true);

Loading…
Cancel
Save