ContextView: Avoid unnecessary album resize

This commit is contained in:
Jonas Kvinge 2021-10-27 22:16:48 +02:00
parent 5cb88efc38
commit fa834a76ef
1 changed files with 4 additions and 1 deletions

View File

@ -294,7 +294,10 @@ ContextView::ContextView(QWidget *parent)
void ContextView::resizeEvent(QResizeEvent*) {
widget_album_->setFixedSize(width() - 15, width());
if (width() != prev_width_) {
widget_album_->setFixedSize(width() - 15, width());
prev_width_ = width();
}
}