Wait for LensApp to report that the view has loaded before showing main window (#2597)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-06-07 08:39:38 -04:00
1 parent 88de530913
commit f3b38d36c6
3 files changed
+49 -19

No files matched your search

+6 -3
View File
@@ -49,6 +49,9 @@ export class LensApp extends React.Component {
window.addEventListener("online", () => broadcastMessage("network:online"));
registerIpcHandlers();
}
componentDidMount() {
ipcRenderer.send(IpcRendererNavigationEvents.LOADED);
}
@@ -57,11 +60,11 @@ export class LensApp extends React.Component {
<Router history={history}>
<ErrorBoundary>
<Switch>
<Route component={ClusterManager}/>
<Route component={ClusterManager} />
</Switch>
</ErrorBoundary>
<Notifications/>
<ConfirmDialog/>
<Notifications />
<ConfirmDialog />
<CommandContainer />
</Router>
);