mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Moved "below" button displaying in performLayout method.
This commit is contained in:
parent
a0ba2154ae
commit
dcda714715
1 changed files with 4 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue