Add setting to prevent or highlight message overflow (#3418)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Adam Davies
2022-11-13 05:47:46 -06:00
committed by GitHub
parent d409e3f17d
commit a9d3c00369
5 changed files with 90 additions and 1 deletions
+13
View File
@@ -19,6 +19,7 @@
#include "widgets/BaseWindow.hpp"
#include "widgets/helper/Line.hpp"
#include "widgets/settingspages/GeneralPageView.hpp"
#include "widgets/splits/SplitInput.hpp"
#include <QDesktopServices>
#include <QFileDialog>
@@ -261,6 +262,18 @@ void GeneralPage::initLayout(GeneralPageView &layout)
layout.addCheckbox(
"Allow sending duplicate messages", s.allowDuplicateMessages, false,
"Allow a single message to be repeatedly sent without any changes.");
layout.addDropdown<std::underlying_type<MessageOverflow>::type>(
"Message overflow", {"Highlight", "Prevent", "Allow"},
s.messageOverflow,
[](auto index) {
return index;
},
[](auto args) {
return static_cast<MessageOverflow>(args.index);
},
false,
"Specify how Chatterino will handle messages that exceed Twitch "
"message limits");
layout.addTitle("Messages");
layout.addCheckbox("Separate with lines", s.separateMessages);