mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
try to fix central widget's no-resizing after hiding dock widget in AppImage
This commit is contained in:
parent
64960cc3c5
commit
c7f35b4ffa
@ -2334,6 +2334,8 @@ void VMainWindow::restoreStateAndGeometry()
|
||||
}
|
||||
|
||||
m_naviBox->setCurrentIndex(g_config->getNaviBoxCurrentIndex());
|
||||
|
||||
centralWidget()->updateGeometry();
|
||||
}
|
||||
|
||||
void VMainWindow::handleCurrentDirectoryChanged(const VDirectory *p_dir)
|
||||
@ -2865,6 +2867,7 @@ bool VMainWindow::toggleToolsDockByCaptain(void *p_target, void *p_data)
|
||||
Q_UNUSED(p_data);
|
||||
VMainWindow *obj = static_cast<VMainWindow *>(p_target);
|
||||
obj->m_toolDock->setVisible(!obj->m_toolDock->isVisible());
|
||||
obj->centralWidget()->updateGeometry();
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -2874,6 +2877,7 @@ bool VMainWindow::toggleSearchDockByCaptain(void *p_target, void *p_data)
|
||||
VMainWindow *obj = static_cast<VMainWindow *>(p_target);
|
||||
bool visible = obj->m_searchDock->isVisible();
|
||||
obj->m_searchDock->setVisible(!visible);
|
||||
obj->centralWidget()->updateGeometry();
|
||||
if (!visible) {
|
||||
obj->m_searcher->focusToSearch();
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user