mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Fix desktop not launching (#17485)
(cherry picked from commit 5f27452ac2)
This commit is contained in:
committed by
Todd Martin
parent
da846bd3b2
commit
406605a9ce
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user