fix naming of displayid -> displayId

This commit is contained in:
Vendicated 2025-02-06 04:27:52 +01:00
parent c0b79e6e93
commit 9b0503f49d
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 3 additions and 3 deletions

View file

@ -271,7 +271,7 @@ function getWindowBoundsOptions(): BrowserWindowConstructorOptions {
height: height ?? DEFAULT_HEIGHT height: height ?? DEFAULT_HEIGHT
} as BrowserWindowConstructorOptions; } as BrowserWindowConstructorOptions;
const storedDisplay = screen.getAllDisplays().find(display => display.id === State.store.displayid); const storedDisplay = screen.getAllDisplays().find(display => display.id === State.store.displayId);
if (x != null && y != null && storedDisplay) { if (x != null && y != null && storedDisplay) {
options.x = x; options.x = x;
@ -321,7 +321,7 @@ function initWindowBoundsListeners(win: BrowserWindow) {
const saveBounds = () => { const saveBounds = () => {
State.store.windowBounds = win.getBounds(); State.store.windowBounds = win.getBounds();
State.store.displayid = screen.getDisplayMatching(State.store.windowBounds).id; State.store.displayId = screen.getDisplayMatching(State.store.windowBounds).id;
}; };
win.on("resize", saveBounds); win.on("resize", saveBounds);

View file

@ -47,7 +47,7 @@ export interface State {
maximized?: boolean; maximized?: boolean;
minimized?: boolean; minimized?: boolean;
windowBounds?: Rectangle; windowBounds?: Rectangle;
displayid: int; displayId: int;
firstLaunch?: boolean; firstLaunch?: boolean;