From dcda714715c66a55d9dedf5512e1febbc542c5da Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 5 Nov 2018 15:38:30 +0300 Subject: [PATCH] Moved "below" button displaying in performLayout method. --- src/widgets/helper/ChannelView.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 9cdb2ea75..4685ba2c5 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -153,11 +153,6 @@ void ChannelView::initializeScrollbar() { this->scrollBar_->getCurrentValueChanged().connect([this] { this->performLayout(true); - - this->goToBottom_->setVisible(this->enableScrollingToBottom_ && - this->scrollBar_->isVisible() && - !this->scrollBar_->isAtBottom()); - this->queueUpdate(); }); } @@ -314,6 +309,10 @@ void ChannelView::performLayout(bool causedByScrollbar) /// Update scrollbar this->updateScrollbar(messages, causedByScrollbar); + + this->goToBottom_->setVisible(this->enableScrollingToBottom_ && + this->scrollBar_->isVisible() && + !this->scrollBar_->isAtBottom()); } void ChannelView::layoutVisibleMessages(