1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

move config value into ui

This commit is contained in:
Callum Booth
2019-10-09 12:59:53 +01:00
parent 1993a6588d
commit 59e361cb37
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ class MarkdownNoteDetail extends React.Component {
isLockButtonShown: props.config.editor.type !== 'SPLIT',
isLocked: false,
editorType: props.config.editor.type,
isStacking: props.config.editor.isStacking,
isStacking: props.config.ui.isStacking,
switchPreview: props.config.editor.switchPreview
}
@@ -360,7 +360,7 @@ class MarkdownNoteDetail extends React.Component {
this.setState({ isStacking: type }, () => {
this.focus()
const newConfig = Object.assign({}, this.props.config)
newConfig.editor.isStacking = type
newConfig.ui.isStacking = type
ConfigManager.set(newConfig)
})
}