lint
This commit is contained in:
parent
c0598821ee
commit
90b8c5fdfe
2 changed files with 4 additions and 11 deletions
|
@ -215,10 +215,8 @@ function initWindowBoundsListeners(win: BrowserWindow) {
|
||||||
|
|
||||||
function initSettingsListeners(win: BrowserWindow) {
|
function initSettingsListeners(win: BrowserWindow) {
|
||||||
Settings.addChangeListener("tray", enable => {
|
Settings.addChangeListener("tray", enable => {
|
||||||
if (enable)
|
if (enable) initTray(win);
|
||||||
initTray(win);
|
else tray?.destroy();
|
||||||
else
|
|
||||||
tray?.destroy();
|
|
||||||
});
|
});
|
||||||
Settings.addChangeListener("disableMinSize", disable => {
|
Settings.addChangeListener("disableMinSize", disable => {
|
||||||
if (disable) {
|
if (disable) {
|
||||||
|
|
|
@ -22,18 +22,13 @@ export default function SettingsUi() {
|
||||||
} = Common;
|
} = Common;
|
||||||
|
|
||||||
const switches: [keyof typeof Settings, string, string, boolean?, (() => boolean)?][] = [
|
const switches: [keyof typeof Settings, string, string, boolean?, (() => boolean)?][] = [
|
||||||
[
|
["tray", "Tray Icon", "Add a tray icon for Vencord Desktop", true],
|
||||||
"tray",
|
|
||||||
"Tray Icon",
|
|
||||||
"Add a tray icon for Vencord Desktop",
|
|
||||||
true
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
"minimizeToTray",
|
"minimizeToTray",
|
||||||
"Minimize to tray",
|
"Minimize to tray",
|
||||||
"Hitting X will make Vencord Desktop minimize to the tray instead of closing",
|
"Hitting X will make Vencord Desktop minimize to the tray instead of closing",
|
||||||
true,
|
true,
|
||||||
() => Settings["tray"] ?? true
|
() => Settings.tray ?? true
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"disableMinSize",
|
"disableMinSize",
|
||||||
|
|
Loading…
Reference in a new issue