mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
* Ensure window is hidden when application launches * Update ElectronAppWrapper.js Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
parent
69fc518e39
commit
247182edbf
@ -124,6 +124,13 @@ class ElectronAppWrapper {
|
||||
// automatically (the listeners will be removed when the window is closed)
|
||||
// and restore the maximized or full screen state
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user