mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Code Style Improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user