mirror of https://github.com/laurent22/joplin.git
* Ensure window is hidden when application launches * Update ElectronAppWrapper.js Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>pull/2447/head
parent
69fc518e39
commit
247182edbf
|
@ -124,6 +124,13 @@ class ElectronAppWrapper {
|
||||||
// automatically (the listeners will be removed when the window is closed)
|
// automatically (the listeners will be removed when the window is closed)
|
||||||
// and restore the maximized or full screen state
|
// and restore the maximized or full screen state
|
||||||
windowState.manage(this.win_);
|
windowState.manage(this.win_);
|
||||||
|
|
||||||
|
// HACK: Ensure the window is hidden, as `windowState.manage` may make the window
|
||||||
|
// visible with isMaximized set to true in window-state-${this.env_}.json.
|
||||||
|
// https://github.com/laurent22/joplin/issues/2365
|
||||||
|
if (!windowOptions.show) {
|
||||||
|
this.win_.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async waitForElectronAppReady() {
|
async waitForElectronAppReady() {
|
||||||
|
|
Loading…
Reference in New Issue