From 5957b8729863cd7db9a4551c4d8ee7af25296e9c Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 8 Aug 2018 15:50:43 +0200 Subject: [PATCH] minor changes --- src/widgets/splits/SplitHeader.cpp | 43 +++++++++++------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index 7c8571303..882f0b9eb 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -28,7 +28,7 @@ namespace chatterino { namespace { -auto formatRoomMode(TwitchChannel &channel) +auto formatRoomMode(TwitchChannel &channel) -> QString { QString text; @@ -54,6 +54,8 @@ auto formatRoomMode(TwitchChannel &channel) text = match.captured(1) + '\n' + match.captured(2); } + if (text.isEmpty() && channel.hasModRights()) return "none"; + return text; } auto formatTooltip(const TwitchChannel::StreamStatus &s) @@ -156,11 +158,8 @@ void SplitHeader::initializeLayout() }); }), // dropdown - this->dropdownButton_ = makeWidget