mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
parent
639bdf7f69
commit
696979e9a3
|
@ -20,6 +20,7 @@
|
||||||
- Minor: Fixed `/streamlink` command not stripping leading @'s or #'s (#3215)
|
- Minor: Fixed `/streamlink` command not stripping leading @'s or #'s (#3215)
|
||||||
- Minor: Strip leading @ and trailing , from username in `/popout` command. (#3217)
|
- Minor: Strip leading @ and trailing , from username in `/popout` command. (#3217)
|
||||||
- Minor: Added `flags.reward_message` filter variable (#3231)
|
- Minor: Added `flags.reward_message` filter variable (#3231)
|
||||||
|
- Minor: Added chatter count to viewer list popout (#3261)
|
||||||
- Minor: Added highlights for first messages (#3267)
|
- Minor: Added highlights for first messages (#3267)
|
||||||
- Minor: Ignore out of bounds check for tiling wms (#3270)
|
- Minor: Ignore out of bounds check for tiling wms (#3270)
|
||||||
- Minor: Added `flags.first_message` filter variable (#3292)
|
- Minor: Added `flags.first_message` filter variable (#3292)
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include "singletons/Theme.hpp"
|
#include "singletons/Theme.hpp"
|
||||||
#include "singletons/WindowManager.hpp"
|
#include "singletons/WindowManager.hpp"
|
||||||
#include "util/Clipboard.hpp"
|
#include "util/Clipboard.hpp"
|
||||||
|
#include "util/Helpers.hpp"
|
||||||
#include "util/NuulsUploader.hpp"
|
#include "util/NuulsUploader.hpp"
|
||||||
#include "util/Shortcut.hpp"
|
#include "util/Shortcut.hpp"
|
||||||
#include "util/StreamLink.hpp"
|
#include "util/StreamLink.hpp"
|
||||||
|
@ -744,6 +745,11 @@ void Split::showViewerList()
|
||||||
auto obj = result.parseJson();
|
auto obj = result.parseJson();
|
||||||
QJsonObject chattersObj = obj.value("chatters").toObject();
|
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();
|
loadingLabel->hide();
|
||||||
for (int i = 0; i < jsonLabels.size(); i++)
|
for (int i = 0; i < jsonLabels.size(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue