mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09: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()
|
void VMainWindow::restoreStateAndGeometry()
|
||||||
{
|
{
|
||||||
m_toolDock->setVisible(g_config->getToolsDockChecked());
|
|
||||||
m_searchDock->setVisible(g_config->getSearchDockChecked());
|
|
||||||
|
|
||||||
const QByteArray geometry = g_config->getMainWindowGeometry();
|
const QByteArray geometry = g_config->getMainWindowGeometry();
|
||||||
if (!geometry.isEmpty()) {
|
if (!geometry.isEmpty()) {
|
||||||
restoreGeometry(geometry);
|
restoreGeometry(geometry);
|
||||||
@ -2320,6 +2317,7 @@ void VMainWindow::restoreStateAndGeometry()
|
|||||||
|
|
||||||
const QByteArray state = g_config->getMainWindowState();
|
const QByteArray state = g_config->getMainWindowState();
|
||||||
if (!state.isEmpty()) {
|
if (!state.isEmpty()) {
|
||||||
|
// restoreState() will restore the state of dock widgets.
|
||||||
restoreState(state);
|
restoreState(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user