mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
MainWindow: save state after toggling split out
This commit is contained in:
parent
c640118dfa
commit
c606069c1c
@ -3465,6 +3465,8 @@ void VMainWindow::splitFileListOut(bool p_enabled)
|
|||||||
g_config->setEnableSplitFileList(p_enabled);
|
g_config->setEnableSplitFileList(p_enabled);
|
||||||
|
|
||||||
setupFileListSplitOut(p_enabled);
|
setupFileListSplitOut(p_enabled);
|
||||||
|
|
||||||
|
g_config->setNotebookSplitterState(m_nbSplitter->saveState());
|
||||||
}
|
}
|
||||||
|
|
||||||
void VMainWindow::setupFileListSplitOut(bool p_enabled)
|
void VMainWindow::setupFileListSplitOut(bool p_enabled)
|
||||||
|
@ -81,6 +81,7 @@ void VTagExplorer::setupUI()
|
|||||||
this, [this](bool p_checked) {
|
this, [this](bool p_checked) {
|
||||||
g_config->setEnableSplitTagFileList(p_checked);
|
g_config->setEnableSplitTagFileList(p_checked);
|
||||||
setupFileListSplitOut(p_checked);
|
setupFileListSplitOut(p_checked);
|
||||||
|
saveStateAndGeometry();
|
||||||
});
|
});
|
||||||
|
|
||||||
QHBoxLayout *titleLayout = new QHBoxLayout();
|
QHBoxLayout *titleLayout = new QHBoxLayout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user