mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixes #1220 Added setting do disable timeout stacking
This commit is contained in:
parent
f3e48c1325
commit
b84c3ac3be
3 changed files with 5 additions and 3 deletions
|
@ -144,7 +144,7 @@ void Channel::addOrReplaceTimeout(MessagePtr message)
|
|||
if (!message->flags.has(MessageFlag::PubSub) &&
|
||||
s->flags.has(MessageFlag::PubSub)) //
|
||||
{
|
||||
addMessage = false;
|
||||
addMessage = timeoutStackStyle == TimeoutStackStyle::DontStack;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,9 @@ using MessageFlags = FlagsEnum<MessageFlag>;
|
|||
enum class TimeoutStackStyle : int {
|
||||
StackHard = 0,
|
||||
DontStackBeyondUserMessage = 1,
|
||||
DontStack = 2,
|
||||
|
||||
Default = StackHard,
|
||||
Default = DontStackBeyondUserMessage,
|
||||
};
|
||||
|
||||
class Channel : public std::enable_shared_from_this<Channel>
|
||||
|
|
|
@ -219,7 +219,8 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addCheckbox("Hide moderation messages", s.hideModerationActions);
|
||||
layout.addCheckbox("Colorize gray nicknames", s.colorizeNicknames);
|
||||
layout.addDropdown<int>("Timeout stacking style",
|
||||
{"Stack", "Stack sparingly"}, s.timeoutStackStyle,
|
||||
{"Stack", "Stack unless timed out", "Don't stack"},
|
||||
s.timeoutStackStyle,
|
||||
[](int index) { return index; },
|
||||
[](auto args) { return args.index; }, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue