Skip to content

Commit 5140fd9

Browse files
committed
Fixed loading window bug
1 parent e390b92 commit 5140fd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DeskThingServer/src/main/lifecycle/appLifecycle.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export async function initializeAppLifecycle(): Promise<void> {
4343
await setupIpcHandlers()
4444
await loadModules()
4545
await updateLoadingStatus('Creating main window')
46+
})
4647

47-
// Close loading window once main window is ready
48-
mainWindow.once('ready-to-show', async () => {
49-
await updateLoadingStatus('Finishing Up...')
50-
closeLoadingWindow()
51-
mainWindow.show()
52-
})
48+
mainWindow.once('ready-to-show', async () => {
49+
await updateLoadingStatus('Finishing Up...')
50+
closeLoadingWindow()
51+
mainWindow.show()
5352
})
53+
5454
app.on('before-quit', async () => {
5555
console.log('Quitting app')
5656
const { default: cacheManager } = await import('../services/cache/cacheManager')

0 commit comments

Comments
 (0)