Fix crashing when tray icon visibility and theme are changed on Mac and Linux
Fix crashing when tray icon visibility and theme are changed on Mac and Linux

mattermost/desktop,mattermost/desktop,yuya-oc/electron-mattermost,mattermost/desktop,yuya-oc/electron-mattermost,yuya-oc/desktop,mattermost/desktop,yuya-oc/desktop,mattermost/desktop,yuya-oc/electron-mattermost,yuya-oc/desktop