fix: close dev tools when editor window closes

This commit is contained in:
Hachi-R
2025-01-29 04:09:05 -03:00
parent 613d8caa6f
commit 56e686f1f0
2 changed files with 4 additions and 1 deletions

View File

@@ -238,6 +238,10 @@ export class WindowManager {
editorWindow.once("ready-to-show", () => {
editorWindow.show();
});
editorWindow.on("close", () => {
this.mainWindow?.webContents.closeDevTools();
});
}
}