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();
});
}
}

View File

@ -86,7 +86,6 @@ export const ThemeCard = ({ theme, onListUpdated }: ThemeCardProps) => {
className="theme-card__header__colors__color"
key={key}
>
{/* color circle */}
</div>
))}
</div>