diff --git a/src/renderer/components/SettingsPage.tsx b/src/renderer/components/SettingsPage.tsx index 09d07f50..5f9147ac 100644 --- a/src/renderer/components/SettingsPage.tsx +++ b/src/renderer/components/SettingsPage.tsx @@ -712,49 +712,51 @@ export default class SettingsPage extends React.PureComponent); } - if (window.process.platform === 'linux' || window.process.platform === 'win32') { - options.push( - - {'Icon theme: '} - {window.process.platform === 'win32' && - <> - this.handleChangeTrayIconTheme('use_system')} - label={'Use system default'} - /> - {' '} - - } - this.handleChangeTrayIconTheme('light')} - label={'Light'} - /> - {' '} - this.handleChangeTrayIconTheme('dark')} - label={'Dark'} - /> - , - ); + if (this.state.showTrayIcon) { + if (window.process.platform === 'linux' || window.process.platform === 'win32') { + options.push( + + {'Icon theme: '} + {window.process.platform === 'win32' && + <> + this.handleChangeTrayIconTheme('use_system')} + label={'Use system default'} + /> + {' '} + + } + this.handleChangeTrayIconTheme('light')} + label={'Light'} + /> + {' '} + this.handleChangeTrayIconTheme('dark')} + label={'Dark'} + /> + , + ); + } } if (window.process.platform === 'linux' || window.process.platform === 'win32') {