mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
option to hide viewer count and duration of the stream when you hover on the split (#1626)
Fixes #1621
This commit is contained in:
parent
3138efba25
commit
2ac0b60952
3 changed files with 10 additions and 2 deletions
|
@ -278,6 +278,8 @@ public:
|
|||
BoolSetting restartOnCrash = {"/misc/restartOnCrash", false};
|
||||
BoolSetting attachExtensionToAnyProcess = {
|
||||
"/misc/attachExtensionToAnyProcess", false};
|
||||
BoolSetting hideViewerCountAndDuration = {
|
||||
"/misc/hideViewerCountAndDuration", false};
|
||||
|
||||
/// Debug
|
||||
BoolSetting showUnhandledIrcMessages = {"/debug/showUnhandledIrcMessages",
|
||||
|
|
|
@ -540,6 +540,9 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
s.enableExperimentalIrc);
|
||||
layout.addCheckbox("Show unhandled IRC messages",
|
||||
s.showUnhandledIrcMessages);
|
||||
layout.addCheckbox(
|
||||
"Hide viewercount and stream length while hovering the split",
|
||||
s.hideViewerCountAndDuration);
|
||||
|
||||
layout.addTitle("Cache");
|
||||
layout.addDescription(
|
||||
|
|
|
@ -94,8 +94,11 @@ namespace {
|
|||
.arg(s.game.toHtmlEscaped())
|
||||
.arg(s.game.isEmpty() ? QString() : "<br>")
|
||||
.arg(s.rerun ? "Vod-casting" : "Live")
|
||||
.arg(s.uptime)
|
||||
.arg(QString::number(s.viewerCount));
|
||||
.arg(getSettings()->hideViewerCountAndDuration ? "<Hidden>"
|
||||
: s.uptime)
|
||||
.arg(getSettings()->hideViewerCountAndDuration
|
||||
? "<Hidden>"
|
||||
: QString::number(s.viewerCount));
|
||||
}
|
||||
auto formatOfflineTooltip(const TwitchChannel::StreamStatus &s)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue