guh
This commit is contained in:
parent
89cf369d4f
commit
315fdf299f
3 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
];
|
||||
|
||||
|
|
1
src/shared/settings.d.ts
vendored
1
src/shared/settings.d.ts
vendored
|
@ -17,4 +17,5 @@ export interface Settings {
|
|||
tray?: boolean;
|
||||
minimizeToTray?: boolean;
|
||||
skippedUpdate?: string;
|
||||
staticTitle?: boolean;
|
||||
}
|
||||
|
|
Reference in a new issue