@@ -43,10 +43,10 @@ import {
4343 encryptValue ,
4444 setAutoLaunch ,
4545 setKeyboardShortcut ,
46+ setUseAlternateIdleIcon ,
47+ setUseUnreadActiveIcon ,
4648 updateTrayIcon ,
4749 updateTrayTitle ,
48- useAlternateIdleIcon ,
49- useUnreadActiveIcon ,
5050} from '../utils/comms' ;
5151import { getNotificationCount } from '../utils/notifications/notifications' ;
5252import { clearState , loadState , saveState } from '../utils/storage' ;
@@ -162,7 +162,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
162162 useEffect ( ( ) => {
163163 const count = getNotificationCount ( notifications ) ;
164164
165- useUnreadActiveIcon ( settings . useUnreadActiveIcon ) ;
165+ setUseUnreadActiveIcon ( settings . useUnreadActiveIcon ) ;
166166
167167 updateTrayIcon ( count ) ;
168168 } , [ settings . useUnreadActiveIcon , notifications ] ) ;
@@ -172,7 +172,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
172172 } , [ settings . openAtStartup ] ) ;
173173
174174 useEffect ( ( ) => {
175- useAlternateIdleIcon ( settings . useAlternateIdleIcon ) ;
175+ setUseAlternateIdleIcon ( settings . useAlternateIdleIcon ) ;
176176 } , [ settings . useAlternateIdleIcon ] ) ;
177177
178178 useEffect ( ( ) => {
@@ -278,8 +278,8 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
278278 // Restore settings before accounts to ensure filters are available before fetching notifications
279279 if ( existing . settings ) {
280280 setKeyboardShortcut ( existing . settings . keyboardShortcut ) ;
281- useUnreadActiveIcon ( existing . settings . useUnreadActiveIcon ) ;
282- useAlternateIdleIcon ( existing . settings . useAlternateIdleIcon ) ;
281+ setUseUnreadActiveIcon ( existing . settings . useUnreadActiveIcon ) ;
282+ setUseAlternateIdleIcon ( existing . settings . useAlternateIdleIcon ) ;
283283 setSettings ( { ...defaultSettings , ...existing . settings } ) ;
284284 window . gitify . zoom . setLevel (
285285 zoomPercentageToLevel ( existing . settings . zoomPercentage ) ,
0 commit comments