[MM-48080] Update tray icon instantly when the settings change (#2376)

* Update wording and update tray icon instantly when the settings change

* Add tests

* Include new file
This commit is contained in:
Tasos Boulis
2022-11-14 21:40:18 +02:00
committed by GitHub
parent 4171774aee
commit e1f5250c0c
7 changed files with 208 additions and 7 deletions

View File

@@ -633,7 +633,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
options.push(
<div
style={settingsPage.container}
key='containerInputSpellchekerURL'
key='containerInputSpellcheckerURL'
>
<input
disabled={!this.state.useSpellChecker}
@@ -855,8 +855,8 @@ class SettingsPage extends React.PureComponent<Props, State> {
style={{marginLeft: '20px'}}
>
<FormattedMessage
id='renderer.components.settingsPage.trayIcon.theme'
defaultMessage='Icon theme: '
id='renderer.components.settingsPage.trayIcon.color'
defaultMessage='Icon color: '
/>
{window.process.platform === 'win32' &&
<>