fix: destroy window-manager on app exit

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-25 17:46:06 +03:00
1 parent dd9b2efdc7
commit e79f78c547
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -417,7 +417,7 @@ export class Cluster implements ClusterModel {
} }
protected async getAllowedResources() { protected async getAllowedResources() {
// TODO: auto-populate all resources dynamically // todo: auto-populate all resources dynamically (e.g. kubectl api-resources -o=wide -v=7)
const apiResources = [ const apiResources = [
{ resource: "configmaps" }, { resource: "configmaps" },
{ resource: "cronjobs", group: "batch" }, { resource: "cronjobs", group: "batch" },
+2 -1
View File
@@ -81,7 +81,8 @@ app.on("ready", main);
app.on("will-quit", async (event) => { app.on("will-quit", async (event) => {
event.preventDefault(); // To allow mixpanel sending to be executed event.preventDefault(); // To allow mixpanel sending to be executed
if (clusterManager) clusterManager.stop()
if (proxyServer) proxyServer.close() if (proxyServer) proxyServer.close()
if (clusterManager) clusterManager.stop()
if (windowManager) windowManager.destroy()
app.exit(); app.exit();
}) })