fix naming of displayid -> displayId
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
2
src/shared/settings.d.ts
vendored
2
src/shared/settings.d.ts
vendored
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user