diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 5a9db34..d8ad3b1 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -232,6 +232,7 @@ export function createMainWindow() { }, icon: ICON_PATH, frame: VencordSettings.store.frameless !== true, + ...(Settings.store.staticTitle ? { title: "Vencord" } : {}), ...(VencordSettings.store.macosTranslucency ? { vibrancy: "sidebar", @@ -250,6 +251,8 @@ export function createMainWindow() { return false; }); + if (Settings.store.staticTitle) win.on("page-title-updated", e => e.preventDefault()); + initWindowBoundsListeners(win); if (Settings.store.tray ?? true) initTray(win); initMenuBar(win); diff --git a/src/renderer/components/Settings.tsx b/src/renderer/components/Settings.tsx index fcbb289..13f46a3 100644 --- a/src/renderer/components/Settings.tsx +++ b/src/renderer/components/Settings.tsx @@ -31,7 +31,8 @@ export default function SettingsUi() { "openLinksWithElectron", "Open Links in app (experimental)", "Opens links in a new Vencord Desktop window instead of your web browser" - ] + ], + ["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page'] ]; return ( diff --git a/src/shared/settings.d.ts b/src/shared/settings.d.ts index 2f310b1..14d1ec7 100644 --- a/src/shared/settings.d.ts +++ b/src/shared/settings.d.ts @@ -17,4 +17,5 @@ export interface Settings { tray?: boolean; minimizeToTray?: boolean; skippedUpdate?: string; + staticTitle?: boolean; }