Add chatter count to viewer list popout (#3261)
Co-authored-by: Paweł <zneix@zneix.eu> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "singletons/Theme.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
#include "util/Clipboard.hpp"
|
||||
#include "util/Helpers.hpp"
|
||||
#include "util/NuulsUploader.hpp"
|
||||
#include "util/Shortcut.hpp"
|
||||
#include "util/StreamLink.hpp"
|
||||
@@ -744,6 +745,11 @@ void Split::showViewerList()
|
||||
auto obj = result.parseJson();
|
||||
QJsonObject chattersObj = obj.value("chatters").toObject();
|
||||
|
||||
viewerDock->setWindowTitle(
|
||||
QString("Viewer List - %1 (%2 chatters)")
|
||||
.arg(this->getChannel()->getName())
|
||||
.arg(localizeNumbers(obj.value("chatter_count").toInt())));
|
||||
|
||||
loadingLabel->hide();
|
||||
for (int i = 0; i < jsonLabels.size(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user