mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-25 19:41:15 -08:00
small corrections for window bounds/state memory (#1232)
This commit is contained in:
1 parent
1f17c18362
commit
6ca6a964ac
1 file changed
+3
@@ -185,8 +185,11 @@ function initWindowBoundsListeners(win: BrowserWindow) {
|
||||
win.on("maximize", saveState);
|
||||
win.on("minimize", saveState);
|
||||
win.on("unmaximize", saveState);
|
||||
win.on("restore", saveState);
|
||||
|
||||
const saveBounds = () => {
|
||||
if (win.isMaximized()) return;
|
||||
|
||||
State.store.windowBounds = win.getBounds();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user