Tray icon option
This commit is contained in:
parent
d1acb0490b
commit
9c75d31895
3 changed files with 8 additions and 1 deletions
|
@ -255,7 +255,7 @@ export function createMainWindow() {
|
|||
});
|
||||
|
||||
initWindowBoundsListeners(win);
|
||||
initTray(win);
|
||||
if (Settings.tray !== false) initTray(win);
|
||||
initMenuBar(win);
|
||||
makeLinksOpenExternally(win);
|
||||
initSettingsListeners(win);
|
||||
|
|
|
@ -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",
|
||||
|
|
1
src/shared/settings.d.ts
vendored
1
src/shared/settings.d.ts
vendored
|
@ -14,5 +14,6 @@ export interface Settings {
|
|||
openLinksWithElectron?: boolean;
|
||||
vencordDir?: string;
|
||||
disableMinSize?: boolean;
|
||||
tray?: boolean;
|
||||
minimizeToTray?: boolean;
|
||||
}
|
||||
|
|
Reference in a new issue