1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Fix desktop not launching (#17485)

This commit is contained in:
Bernd Schoolmann
2025-11-20 02:41:59 +01:00
committed by GitHub
parent 7c4db701b9
commit 5f27452ac2

View File

@@ -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);