1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix: destroy window-manager on app exit

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

View File

@ -417,7 +417,7 @@ export class Cluster implements ClusterModel {
}
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 = [
{ resource: "configmaps" },
{ resource: "cronjobs", group: "batch" },

View File

@ -81,7 +81,8 @@ app.on("ready", main);
app.on("will-quit", async (event) => {
event.preventDefault(); // To allow mixpanel sending to be executed
if (clusterManager) clusterManager.stop()
if (proxyServer) proxyServer.close()
if (clusterManager) clusterManager.stop()
if (windowManager) windowManager.destroy()
app.exit();
})