This commit is contained in:
zt64 2023-04-19 22:15:10 -04:00 committed by Nick
parent 89cf369d4f
commit 315fdf299f
3 changed files with 9 additions and 3 deletions

View file

@ -75,8 +75,6 @@ function initTray(win: BrowserWindow) {
win.on("hide", () => {
trayMenu.items[0].enabled = true;
});
win.on("page-title-updated", e => e.preventDefault());
}
function initMenuBar(win: BrowserWindow) {
@ -232,9 +230,9 @@ export function createMainWindow() {
devTools: true,
preload: join(__dirname, "preload.js")
},
title: "Vencord",
icon: ICON_PATH,
frame: VencordSettings.store.frameless !== true,
...Settings.store.staticTitle ? { title: "Vencord" } : {},
...(VencordSettings.store.macosTranslucency
? {
vibrancy: "sidebar",
@ -253,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);

View file

@ -31,6 +31,11 @@ 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"
]
];

View file

@ -17,4 +17,5 @@ export interface Settings {
tray?: boolean;
minimizeToTray?: boolean;
skippedUpdate?: string;
staticTitle?: boolean;
}