Tray icon option

This commit is contained in:
TheKodeToad 2023-04-09 22:07:57 +01:00
parent d1acb0490b
commit 9c75d31895
3 changed files with 8 additions and 1 deletions

View file

@ -255,7 +255,7 @@ export function createMainWindow() {
});
initWindowBoundsListeners(win);
initTray(win);
if (Settings.tray !== false) initTray(win);
initMenuBar(win);
makeLinksOpenExternally(win);
initSettingsListeners(win);

View file

@ -22,6 +22,12 @@ export default function SettingsUi() {
} = Common;
const switches: [keyof typeof Settings, string, string, boolean?][] = [
[
"tray",
"Use tray",
"Add a tray icon for Vencord Desktop",
true
],
[
"minimizeToTray",
"Minimize to tray",

View file

@ -14,5 +14,6 @@ export interface Settings {
openLinksWithElectron?: boolean;
vencordDir?: string;
disableMinSize?: boolean;
tray?: boolean;
minimizeToTray?: boolean;
}