Skip to content

Commit

Permalink
fixed #9947 - window not showing up on first start
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Sep 24, 2024
1 parent 1c07714 commit e8fdb8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Window {

this.webContents = this.window.webContents

this.window.once('ready-to-show', () => {
this.window.webContents.once('did-finish-load', () => {
if (process.platform === 'darwin') {
this.window.setVibrancy(macOSVibrancyType)
} else if (process.platform === 'win32' && this.configStore.appearance?.vibrancy) {
Expand Down Expand Up @@ -139,7 +139,7 @@ export class Window {

enableRemote(this.window.webContents)

this.window.loadURL(`file://${app.getAppPath()}/dist/index.html`, { extraHeaders: 'pragma: no-cache\n' })
this.window.loadFile(path.join(app.getAppPath(), 'dist', 'index.html'))

this.window.webContents.setVisualZoomLevelLimits(1, 1)
this.window.webContents.setZoomFactor(1)
Expand Down

0 comments on commit e8fdb8b

Please sign in to comment.