mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Option to hide system moderation messages (#1066)
This commit is contained in:
parent
3ea496a99b
commit
834b1f3c53
|
@ -121,6 +121,13 @@ void MessageLayout::actuallyLayout(int width, MessageElementFlags flags)
|
|||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (getSettings()->hideModerationActions &&
|
||||
this->message_->flags.has(MessageFlag::Timeout))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
element->addToContainer(*this->container_, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
false};
|
||||
BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true};
|
||||
BoolSetting hideModerated = {"/appearance/messages/hideModerated", false};
|
||||
BoolSetting hideModerationActions = {"/appearance/messages/hideModerationActions", false};
|
||||
|
||||
// BoolSetting collapseLongMessages =
|
||||
// {"/appearance/messages/collapseLongMessages", false};
|
||||
|
|
|
@ -214,6 +214,7 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
// layout.addCheckbox("Mark last message you read");
|
||||
// layout.addDropdown("Last read message style", {"Default"});
|
||||
layout.addCheckbox("Hide moderated messages", s.hideModerated);
|
||||
layout.addCheckbox("Hide moderation messages", s.hideModerationActions);
|
||||
|
||||
layout.addTitle("Emotes");
|
||||
layout.addDropdown<float>(
|
||||
|
|
Loading…
Reference in a new issue