Skip to content

Commit

Permalink
renderTray when countMuted is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzombiee2361 committed May 20, 2020
1 parent c32e9d6 commit d5b344c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const settingsMenu = [{
checked: settings.get('countMuted.value'),
click: (menuItem) => {
settings.set('countMuted.value', menuItem.checked);
win.webContents.send('renderTray');
}
}, {
label: "Update Desktop Integration",
Expand Down
1 change: 1 addition & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ function disableDarkMode() {

window.addEventListener('load', storeOnLoad);
window.addEventListener('load', applySettings);
ipcRenderer.on('renderTray', renderTray);
ipcRenderer.on('enableDarkMode', enableDarkMode);
ipcRenderer.on('disableDarkMode', disableDarkMode);

0 comments on commit d5b344c

Please sign in to comment.