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.once("ready-to-show", () => {
editorWindow.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" className="theme-card__header__colors__color"
key={key} key={key}
> >
{/* color circle */}
</div> </div>
))} ))}
</div> </div>