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:
parent
dd9b2efdc7
commit
e79f78c547
@ -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" },
|
||||
|
||||
@ -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();
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user