Skip to content

Commit

Permalink
fix: sidenav width not restore when return to home
Browse files Browse the repository at this point in the history
从子模块返回主页时,没有恢复sidenav的宽度,导致标题栏阴影宽度未恢复

Issue: linuxdeepin/developer-center#3586
  • Loading branch information
myml authored and Decodetalkers committed Mar 11, 2023
1 parent 37901e6 commit 5d4ef0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frame/mainmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class MainModulePrivate
m_view->clearSelection();
m_sidebarWidget->setVisible(false);
#ifdef USE_SIDEBAR
m_mainWindow->setSidebarWidth(100);
m_mainWindow->setSidebarExpanded(false);
m_mainWindow->setSidebarVisible(false);
#endif
Expand Down

0 comments on commit 5d4ef0a

Please sign in to comment.