mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Add the ability to pick the tray icon
This commit is contained in:
parent
5e132564aa
commit
b025948d90
2 changed files with 2 additions and 1 deletions
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
@ -25,7 +25,8 @@ app.whenReady().then(async () => {
|
|||
tray.setToolTip("Discord");
|
||||
tray.setContextMenu(contextMenu);
|
||||
} else {
|
||||
tray = new Tray(path.join(__dirname, "../", "/assets/ac_plug.png"));
|
||||
var trayIcon = await getConfig("trayIcon") ?? "ac_plug_colored";
|
||||
tray = new Tray(path.join(__dirname, "../", `/assets/${trayIcon}.png`));
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: "ArmCord"
|
||||
|
|
Loading…
Reference in a new issue