dolphin: set the maximum size of the video preview widget even if it is not visible

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-28 21:01:56 +02:00
parent b1cb5c6075
commit 21bda2c7cd

View file

@ -348,10 +348,8 @@ void InformationPanelContent::adjustWidgetSizes(int width)
// try to increase the preview as large as possible
m_preview->setMaximumSize(QSize(maxWidth, maxWidth));
if (m_playerWidget->isVisible()) {
// the size of the video player should match that of the preview size
m_playerWidget->setMaximumSize(maxWidth, maxWidth);
}
// the size of the video player should match that of the preview size
m_playerWidget->setMaximumSize(maxWidth, maxWidth);
}
#include "moc_informationpanelcontent.cpp"