mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-09 22:10:09 +00:00
fixed #9947 - window not showing up on first start
This commit is contained in:
parent
1c077147ac
commit
e8fdb8b8f9
@ -108,7 +108,7 @@ export class Window {
|
|||||||
|
|
||||||
this.webContents = this.window.webContents
|
this.webContents = this.window.webContents
|
||||||
|
|
||||||
this.window.once('ready-to-show', () => {
|
this.window.webContents.once('did-finish-load', () => {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
this.window.setVibrancy(macOSVibrancyType)
|
this.window.setVibrancy(macOSVibrancyType)
|
||||||
} else if (process.platform === 'win32' && this.configStore.appearance?.vibrancy) {
|
} else if (process.platform === 'win32' && this.configStore.appearance?.vibrancy) {
|
||||||
@ -139,7 +139,7 @@ export class Window {
|
|||||||
|
|
||||||
enableRemote(this.window.webContents)
|
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.setVisualZoomLevelLimits(1, 1)
|
||||||
this.window.webContents.setZoomFactor(1)
|
this.window.webContents.setZoomFactor(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user