mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
fix naming of displayid -> displayId
This commit is contained in:
parent
c0b79e6e93
commit
9b0503f49d
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue