mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
MainWindow: fix layout again
This commit is contained in:
parent
ae6849adec
commit
8024b55a75
@ -2310,9 +2310,6 @@ void VMainWindow::saveStateAndGeometry()
|
||||
|
||||
void VMainWindow::restoreStateAndGeometry()
|
||||
{
|
||||
m_toolDock->setVisible(g_config->getToolsDockChecked());
|
||||
m_searchDock->setVisible(g_config->getSearchDockChecked());
|
||||
|
||||
const QByteArray geometry = g_config->getMainWindowGeometry();
|
||||
if (!geometry.isEmpty()) {
|
||||
restoreGeometry(geometry);
|
||||
@ -2320,6 +2317,7 @@ void VMainWindow::restoreStateAndGeometry()
|
||||
|
||||
const QByteArray state = g_config->getMainWindowState();
|
||||
if (!state.isEmpty()) {
|
||||
// restoreState() will restore the state of dock widgets.
|
||||
restoreState(state);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user