Fixed the window resize for Windows as well (#2705)

This commit is contained in:
Devin Binnie
2023-05-03 11:40:43 -04:00
committed by GitHub
parent 1049b0763c
commit 717544779a

View File

@@ -408,13 +408,8 @@ export class MainWindow extends EventEmitter {
}
private emitBoundsForMaximize = () => {
// Workaround for Linux since the window bounds aren't updated immediately when the window is maximized for some reason
if (process.platform !== 'linux') {
return;
}
setTimeout(() => {
this.emit(MAIN_WINDOW_RESIZED, this.getBounds());
}, 10);
// Workaround since the window bounds aren't updated immediately when the window is maximized for some reason
setTimeout(() => this.emit(MAIN_WINDOW_RESIZED, this.getBounds()), 10);
}
private onMaximize = () => {