Skip to content

Commit 59e361c

Browse files
committed
move config value into ui
1 parent 1993a65 commit 59e361c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

browser/main/Detail/MarkdownNoteDetail.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MarkdownNoteDetail extends React.Component {
4747
isLockButtonShown: props.config.editor.type !== 'SPLIT',
4848
isLocked: false,
4949
editorType: props.config.editor.type,
50-
isStacking: props.config.editor.isStacking,
50+
isStacking: props.config.ui.isStacking,
5151
switchPreview: props.config.editor.switchPreview
5252
}
5353

@@ -360,7 +360,7 @@ class MarkdownNoteDetail extends React.Component {
360360
this.setState({ isStacking: type }, () => {
361361
this.focus()
362362
const newConfig = Object.assign({}, this.props.config)
363-
newConfig.editor.isStacking = type
363+
newConfig.ui.isStacking = type
364364
ConfigManager.set(newConfig)
365365
})
366366
}

browser/main/lib/ConfigManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export const DEFAULT_CONFIG = {
4242
showCopyNotification: true,
4343
disableDirectWrite: false,
4444
defaultNote: 'ALWAYS_ASK', // 'ALWAYS_ASK', 'SNIPPET_NOTE', 'MARKDOWN_NOTE'
45-
showMenuBar: false
45+
showMenuBar: false,
46+
isStacking: false
4647
},
4748
editor: {
4849
theme: 'base16-light',
@@ -62,7 +63,6 @@ export const DEFAULT_CONFIG = {
6263
delfaultStatus: 'PREVIEW', // 'PREVIEW', 'CODE'
6364
scrollPastEnd: false,
6465
type: 'SPLIT', // 'SPLIT', 'EDITOR_PREVIEW'
65-
isStacking: false,
6666
fetchUrlTitle: true,
6767
enableTableEditor: false,
6868
enableFrontMatterTitle: true,

0 commit comments

Comments
 (0)