diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index c53456cc65..a6fcfa7be7 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -566,7 +566,11 @@ class ApplicationMain { if (process.env.NODE_ENV === 'development') { await this.installDevTools(); - this.windowController.window.webContents.openDevTools({ mode: 'detach' }); + + // The devtools doesn't open on Windows if openDevTools is called without a delay here. + this.windowController.window.once('ready-to-show', () => { + this.windowController?.window?.webContents.openDevTools({ mode: 'detach' }); + }); } switch (process.platform) { |
