MarkdownViewWindow: fix view mode

This commit is contained in:
Le Tan 2021-11-16 21:12:20 +08:00
parent 258adf10da
commit 6884e1ff6a
2 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void AppearancePage::setupUI()
this, &AppearancePage::pageIsChanged);
}
const QString label(tr("Keep dock widgets when expanding content area:"));
const QString label(tr("Dock widgets kept when expanding content area:"));
mainLayout->addRow(label, layout);
addSearchItem(label, label, m_keepDocksExpandingContentArea.first().first);
}

View File

@ -152,6 +152,8 @@ void MarkdownViewWindow::setModeInternal(ViewWindowMode p_mode, bool p_syncBuffe
m_editor->show();
setEditViewMode(ConfigMgr::getInst().getEditorConfig().getMarkdownEditorConfig().getEditViewMode());
} else {
setEditViewMode(m_editViewMode);
}
// Avoid focus glitch.