1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Fix Saving Configuration Bug

This commit is contained in:
Gonçalo Santos
2020-03-27 01:42:18 +00:00
parent 48c8164689
commit e1c95fb1f2
6 changed files with 125 additions and 100 deletions

View File

@@ -2,7 +2,6 @@ import _ from 'lodash'
import RcParser from 'browser/lib/RcParser'
import i18n from 'browser/lib/i18n'
import ee from 'browser/main/lib/eventEmitter'
import { chooseTheme, applyTheme } from 'browser/main/lib/ThemeManager'
const OSX = global.process.platform === 'darwin'
const win = global.process.platform === 'win32'
@@ -204,9 +203,6 @@ function set(updates) {
if (!validate(newConfig)) throw new Error('INVALID CONFIG')
_save(newConfig)
chooseTheme(newConfig.ui)
applyTheme(newConfig.ui.theme)
i18n.setLocale(newConfig.ui.language)
let editorTheme = document.getElementById('editorTheme')