mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-07 06:20:50 -08:00
fix: once did-stop-loading register after loaded
This commit is contained in:
parent
7212561746
commit
5fcaf3d0ea
1 changed files with 3 additions and 0 deletions
|
|
@ -196,6 +196,9 @@ export class Window implements IWindowService {
|
|||
this.workspaceViewService.realignActiveWorkspace();
|
||||
// ensure redux is loaded first
|
||||
// if not, redux might not be able catch changes sent from ipcMain
|
||||
if (!mainWindow.webContents.isLoading()) {
|
||||
return resolve();
|
||||
}
|
||||
mainWindow.webContents.once('did-stop-loading', () => {
|
||||
resolve();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue