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 restartOnCrash = {"/misc/restartOnCrash", false};
|
||||||
BoolSetting attachExtensionToAnyProcess = {
|
BoolSetting attachExtensionToAnyProcess = {
|
||||||
"/misc/attachExtensionToAnyProcess", false};
|
"/misc/attachExtensionToAnyProcess", false};
|
||||||
|
BoolSetting hideViewerCountAndDuration = {
|
||||||
|
"/misc/hideViewerCountAndDuration", false};
|
||||||
|
|
||||||
/// Debug
|
/// Debug
|
||||||
BoolSetting showUnhandledIrcMessages = {"/debug/showUnhandledIrcMessages",
|
BoolSetting showUnhandledIrcMessages = {"/debug/showUnhandledIrcMessages",
|
||||||
|
|
|
@ -540,6 +540,9 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
s.enableExperimentalIrc);
|
s.enableExperimentalIrc);
|
||||||
layout.addCheckbox("Show unhandled IRC messages",
|
layout.addCheckbox("Show unhandled IRC messages",
|
||||||
s.showUnhandledIrcMessages);
|
s.showUnhandledIrcMessages);
|
||||||
|
layout.addCheckbox(
|
||||||
|
"Hide viewercount and stream length while hovering the split",
|
||||||
|
s.hideViewerCountAndDuration);
|
||||||
|
|
||||||
layout.addTitle("Cache");
|
layout.addTitle("Cache");
|
||||||
layout.addDescription(
|
layout.addDescription(
|
||||||
|
|
|
@ -94,8 +94,11 @@ namespace {
|
||||||
.arg(s.game.toHtmlEscaped())
|
.arg(s.game.toHtmlEscaped())
|
||||||
.arg(s.game.isEmpty() ? QString() : "<br>")
|
.arg(s.game.isEmpty() ? QString() : "<br>")
|
||||||
.arg(s.rerun ? "Vod-casting" : "Live")
|
.arg(s.rerun ? "Vod-casting" : "Live")
|
||||||
.arg(s.uptime)
|
.arg(getSettings()->hideViewerCountAndDuration ? "<Hidden>"
|
||||||
.arg(QString::number(s.viewerCount));
|
: s.uptime)
|
||||||
|
.arg(getSettings()->hideViewerCountAndDuration
|
||||||
|
? "<Hidden>"
|
||||||
|
: QString::number(s.viewerCount));
|
||||||
}
|
}
|
||||||
auto formatOfflineTooltip(const TwitchChannel::StreamStatus &s)
|
auto formatOfflineTooltip(const TwitchChannel::StreamStatus &s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue