mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-20 13:11:44 +00:00
Fix Saving Configuration Bug
This commit is contained in:
@@ -13,6 +13,7 @@ import i18n from 'browser/lib/i18n'
|
||||
import { getLanguages } from 'browser/lib/Languages'
|
||||
import normalizeEditorFontFamily from 'browser/lib/normalizeEditorFontFamily'
|
||||
import uiThemes from 'browser/lib/ui-themes'
|
||||
import { chooseTheme, applyTheme } from 'browser/main/lib/ThemeManager'
|
||||
|
||||
const OSX = global.process.platform === 'darwin'
|
||||
|
||||
@@ -194,6 +195,9 @@ class UiTab extends React.Component {
|
||||
preview: this.state.config.preview
|
||||
}
|
||||
|
||||
chooseTheme(newConfig)
|
||||
applyTheme(newConfig.ui.theme)
|
||||
|
||||
ConfigManager.set(newConfig)
|
||||
|
||||
store.dispatch({
|
||||
|
||||
Reference in New Issue
Block a user