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

Code Style Improvements

This commit is contained in:
gregueiras
2018-11-29 13:58:15 +00:00
parent 8b54f5aa69
commit cd53a65c14
3 changed files with 18 additions and 26 deletions

View File

@@ -2,8 +2,7 @@ import _ from 'lodash'
import RcParser from 'browser/lib/RcParser'
import i18n from 'browser/lib/i18n'
import ee from 'browser/main/lib/eventEmitter'
import theme from 'browser/main/lib/ThemeManager'
import {chooseTheme, applyTheme} from 'browser/main/lib/ThemeManager'
const OSX = global.process.platform === 'darwin'
const win = global.process.platform === 'win32'
const electron = require('electron')
@@ -151,8 +150,8 @@ function set (updates) {
if (!validate(newConfig)) throw new Error('INVALID CONFIG')
_save(newConfig)
theme.choose(newConfig.ui)
theme.apply(newConfig.ui.theme)
chooseTheme(newConfig.ui)
applyTheme(newConfig.ui.theme)
i18n.setLocale(newConfig.ui.language)