diff --git a/Makefile b/Makefile index 3c8d2d3..cfcaf9b 100644 --- a/Makefile +++ b/Makefile @@ -60,4 +60,4 @@ lint: .PHONY: start start: - npx electron-forge start + export DEBUG=true && npx electron-forge start \ No newline at end of file diff --git a/src/electron/windows/_base.window.ts b/src/electron/windows/_base.window.ts index 46c2919..fbdb039 100644 --- a/src/electron/windows/_base.window.ts +++ b/src/electron/windows/_base.window.ts @@ -38,7 +38,9 @@ export default class BaseWindow { title: this.getWindowTitle(), }); - // this.window.webContents.openDevTools(); + if (process.env.DEBUG) { + this.window.webContents.openDevTools(); + } if (MAIN_WINDOW_VITE_DEV_SERVER_URL) { this.window.loadURL(`${MAIN_WINDOW_VITE_DEV_SERVER_URL}/index.html`); diff --git a/src/ui/windows/settings.tsx b/src/ui/windows/settings.tsx index d64c300..20276e4 100644 --- a/src/ui/windows/settings.tsx +++ b/src/ui/windows/settings.tsx @@ -19,8 +19,8 @@ const Settings = () => { return ( -
-
+
+
classNames('tab', { 'tab-active': isActive })} to="/"> {translate('characters.title')} @@ -39,7 +39,7 @@ const Settings = () => {
-
+
} /> } /> diff --git a/src/ui/windows/settings/theme/theme.tsx b/src/ui/windows/settings/theme/theme.tsx index eac28ec..52a9530 100644 --- a/src/ui/windows/settings/theme/theme.tsx +++ b/src/ui/windows/settings/theme/theme.tsx @@ -8,7 +8,7 @@ const Theme = () => { const { theme: activeTheme, updateTheme } = useConfig(); return ( -
+
{themes.map((theme) => (