From 31c5a88e94f85e136db648ecdcb727db28154e3d Mon Sep 17 00:00:00 2001 From: KayoticCarnige <32397453+kckarnige@users.noreply.github.com> Date: Sun, 22 May 2022 12:14:54 -0400 Subject: [PATCH] Updated README.md --- README.md | 2 +- src/tray.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31f2c33..c204d55 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ ArmCord is also available on the Snap store [here](https://snapcraft.io/armcord) [electron-discord-webapp](https://github.com/SpacingBat3/electron-discord-webapp) [custom-electron-titlebar (css only)](https://github.com/AlexTorresSk/custom-electron-titlebar) [electron-builder](https://electron.build) -[OpenAsar (~~stole~~ borrowed code for adding items to the settings modal seemlessly)](https://github.com/GooseMod/OpenAsar) +[OpenAsar (~~stole~~ borrowed code for adding custom build info seemlessly)](https://github.com/GooseMod/OpenAsar) # Sponsors [![JetBrains supports ArmCord with free licenses to their software to core developers](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://jb.gg/OpenSourceSupport) diff --git a/src/tray.ts b/src/tray.ts index aafd99d..6129949 100644 --- a/src/tray.ts +++ b/src/tray.ts @@ -25,7 +25,7 @@ app.whenReady().then(async () => { tray.setToolTip("Discord"); tray.setContextMenu(contextMenu); } else { - var trayIcon = await getConfig("trayIcon") ?? "ac_plug_colored"; + var trayIcon = (await getConfig("trayIcon")) ?? "ac_plug_colored"; tray = new Tray(path.join(__dirname, "../", `/assets/${trayIcon}.png`)); const contextMenu = Menu.buildFromTemplate([ {