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", () => {
|
win.on("hide", () => {
|
||||||
trayMenu.items[0].enabled = true;
|
trayMenu.items[0].enabled = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
win.on("page-title-updated", e => e.preventDefault());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initMenuBar(win: BrowserWindow) {
|
function initMenuBar(win: BrowserWindow) {
|
||||||
|
@ -232,9 +230,9 @@ export function createMainWindow() {
|
||||||
devTools: true,
|
devTools: true,
|
||||||
preload: join(__dirname, "preload.js")
|
preload: join(__dirname, "preload.js")
|
||||||
},
|
},
|
||||||
title: "Vencord",
|
|
||||||
icon: ICON_PATH,
|
icon: ICON_PATH,
|
||||||
frame: VencordSettings.store.frameless !== true,
|
frame: VencordSettings.store.frameless !== true,
|
||||||
|
...Settings.store.staticTitle ? { title: "Vencord" } : {},
|
||||||
...(VencordSettings.store.macosTranslucency
|
...(VencordSettings.store.macosTranslucency
|
||||||
? {
|
? {
|
||||||
vibrancy: "sidebar",
|
vibrancy: "sidebar",
|
||||||
|
@ -253,6 +251,8 @@ export function createMainWindow() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (Settings.store.staticTitle) win.on("page-title-updated", e => e.preventDefault());
|
||||||
|
|
||||||
initWindowBoundsListeners(win);
|
initWindowBoundsListeners(win);
|
||||||
if (Settings.store.tray ?? true) initTray(win);
|
if (Settings.store.tray ?? true) initTray(win);
|
||||||
initMenuBar(win);
|
initMenuBar(win);
|
||||||
|
|
|
@ -31,6 +31,11 @@ export default function SettingsUi() {
|
||||||
"openLinksWithElectron",
|
"openLinksWithElectron",
|
||||||
"Open Links in app (experimental)",
|
"Open Links in app (experimental)",
|
||||||
"Opens links in a new Vencord Desktop window instead of your web browser"
|
"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;
|
tray?: boolean;
|
||||||
minimizeToTray?: boolean;
|
minimizeToTray?: boolean;
|
||||||
skippedUpdate?: string;
|
skippedUpdate?: string;
|
||||||
|
staticTitle?: boolean;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue