mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
88de530913
commit
f3b38d36c6
3 files changed
+49
-19
No files matched your search
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user