window - remove obsolete code for showing window in did-finish-load

We since have changed the code so much that we always show the window after it is being created.
This commit is contained in:
Benjamin Pasero
2019-08-09 18:34:17 +02:00
parent 796b5dbd43
commit ded1ac5379

View File

@@ -360,17 +360,6 @@ export class CodeWindow extends Disposable implements ICodeWindow {
this.pendingLoadConfig = undefined;
}
// To prevent flashing, we set the window visible after the page has finished to load but before Code is loaded
if (this._win && !this._win.isVisible()) {
if (this.windowState.mode === WindowMode.Maximized) {
this._win.maximize();
}
if (!this._win.isVisible()) { // maximize also makes visible
this._win.show();
}
}
});
// Window Focus