feat(dock): the dock size will be change to default value when change

the mode
This commit is contained in:
wangxuwen 2019-09-05 20:16:43 +08:00
parent 2379ce6397
commit d77226cb6d

View File

@ -492,6 +492,7 @@ void DockSettings::onFashionTraySizeChanged(const QSize &traySize)
void DockSettings::calculateWindowConfig()
{
m_dockWindowSize = m_dockInter->windowSize();
if (m_dockWindowSize == 0) {
if (m_displayMode == Dock::Efficient)
m_dockWindowSize = EffICIENT_DEFAULT_HEIGHT;