Fix 'First Message' scrollbar highlights not being disabled (#3325)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -13,10 +13,12 @@ ScrollbarHighlight::ScrollbarHighlight()
|
||||
}
|
||||
|
||||
ScrollbarHighlight::ScrollbarHighlight(const std::shared_ptr<QColor> color,
|
||||
Style style, bool isRedeemedHighlight)
|
||||
Style style, bool isRedeemedHighlight,
|
||||
bool isFirstMessageHighlight)
|
||||
: color_(color)
|
||||
, style_(style)
|
||||
, isRedeemedHighlight_(isRedeemedHighlight)
|
||||
, isFirstMessageHighlight_(isFirstMessageHighlight)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -35,6 +37,11 @@ bool ScrollbarHighlight::isRedeemedHighlight() const
|
||||
return this->isRedeemedHighlight_;
|
||||
}
|
||||
|
||||
bool ScrollbarHighlight::isFirstMessageHighlight() const
|
||||
{
|
||||
return this->isFirstMessageHighlight_;
|
||||
}
|
||||
|
||||
bool ScrollbarHighlight::isNull() const
|
||||
{
|
||||
return this->style_ == None;
|
||||
|
||||
Reference in New Issue
Block a user