@@ -22,8 +22,11 @@ export const TraySettings: FC = () => {
2222 checked = { settings . showNotificationsCountInTray }
2323 label = "Show notification count"
2424 name = "showNotificationsCountInTray"
25- onChange = { ( evt ) =>
26- updateSetting ( 'showNotificationsCountInTray' , evt . target . checked )
25+ onChange = { ( ) =>
26+ updateSetting (
27+ 'showNotificationsCountInTray' ,
28+ ! settings . showNotificationsCountInTray ,
29+ )
2730 }
2831 tooltip = {
2932 < Text >
@@ -38,8 +41,8 @@ export const TraySettings: FC = () => {
3841 checked = { settings . useUnreadActiveIcon }
3942 label = "Highlight unread notifications"
4043 name = "useUnreadActiveIcon"
41- onChange = { ( evt ) =>
42- updateSetting ( 'useUnreadActiveIcon' , evt . target . checked )
44+ onChange = { ( ) =>
45+ updateSetting ( 'useUnreadActiveIcon' , ! settings . useUnreadActiveIcon )
4346 }
4447 tooltip = {
4548 < Stack direction = "vertical" gap = "condensed" >
@@ -55,8 +58,11 @@ export const TraySettings: FC = () => {
5558 checked = { settings . useAlternateIdleIcon }
5659 label = "Use alternate idle icon"
5760 name = "useAlternateIdleIcon"
58- onChange = { ( evt ) =>
59- updateSetting ( 'useAlternateIdleIcon' , evt . target . checked )
61+ onChange = { ( ) =>
62+ updateSetting (
63+ 'useAlternateIdleIcon' ,
64+ ! settings . useAlternateIdleIcon ,
65+ )
6066 }
6167 tooltip = {
6268 < Stack direction = "vertical" gap = "condensed" >
0 commit comments