fix: add theme editor dev tools back

This commit is contained in:
Zamitto
2025-10-27 15:22:47 -03:00
parent ee35bc24b2
commit ddd6af0d4c

View File

@@ -462,6 +462,7 @@ export class WindowManager {
editorWindow.once("ready-to-show", () => {
editorWindow.show();
this.mainWindow?.webContents.openDevTools();
if (!app.isPackaged || isStaging) {
editorWindow.webContents.openDevTools();
}
@@ -474,6 +475,7 @@ export class WindowManager {
});
editorWindow.on("close", () => {
this.mainWindow?.webContents.closeDevTools();
this.editorWindows.delete(themeId);
});
}