mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Added continue for readability and removed to hide moderated messages
This commit is contained in:
parent
ac9106e2f5
commit
817c40d733
4 changed files with 7 additions and 7 deletions
|
@ -127,11 +127,12 @@ void MessageLayout::actuallyLayout(int width, MessageElementFlags _flags)
|
|||
|
||||
for (const auto &element : this->message_->elements)
|
||||
{
|
||||
if (!(getSettings()->removeModerated &&
|
||||
this->message_->flags.has(MessageFlag::Disabled)))
|
||||
if (getSettings()->hideModerated &&
|
||||
this->message_->flags.has(MessageFlag::Disabled))
|
||||
{
|
||||
element->addToContainer(*this->container_, _flags);
|
||||
continue;
|
||||
}
|
||||
element->addToContainer(*this->container_, _flags);
|
||||
}
|
||||
|
||||
if (addTest)
|
||||
|
|
|
@ -203,7 +203,7 @@ void IrcMessageHandler::handleClearChatMessage(Communi::IrcMessage *message)
|
|||
|
||||
// refresh all
|
||||
app->windows->repaintVisibleChatWidgets(chan.get());
|
||||
if (getSettings()->removeModerated)
|
||||
if (getSettings()->hideModerated)
|
||||
{
|
||||
app->windows->forceLayoutChannelViews();
|
||||
}
|
||||
|
|
|
@ -41,8 +41,7 @@ public:
|
|||
BoolSetting separateMessages = {"/appearance/messages/separateMessages",
|
||||
false};
|
||||
BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true};
|
||||
BoolSetting removeModerated = {"/appearance/messages/removeModerated",
|
||||
false};
|
||||
BoolSetting hideModerated = {"/appearance/messages/hideModerated", false};
|
||||
|
||||
// BoolSetting collapseLongMessages =
|
||||
// {"/appearance/messages/collapseLongMessages", false};
|
||||
|
|
|
@ -210,7 +210,7 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
||||
// layout.addCheckbox("Mark last message you read");
|
||||
// layout.addDropdown("Last read message style", {"Default"});
|
||||
layout.addCheckbox("Remove moderated messages", s.removeModerated);
|
||||
layout.addCheckbox("Hide moderated messages", s.hideModerated);
|
||||
|
||||
layout.addTitle("Emotes");
|
||||
layout.addDropdown<float>(
|
||||
|
|
Loading…
Reference in a new issue