Skip to content

Commit

Permalink
Merge branch 'master' into scaling-is-fun
Browse files Browse the repository at this point in the history
  • Loading branch information
kornes committed Apr 26, 2022
2 parents dbff96c + 7246ab3 commit 257c046
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
- Minor: Adjust large stream thumbnail to 16:9 (#3655)
- Minor: Fixed being unable to load Twitch Usercards from the `/mentions` tab. (#3623)
- Minor: Add information about the user's operating system in the About page. (#3663)
- Minor: Added chatter count for each category in viewer list. (#3683)
- Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646)
- Bugfix: Fixed certain settings dialogs appearing behind the main window, when `Always on top` was used. (#3679)
- Bugfix: Improved font and UI scaling on high DPI screens. (#3690)
- Bugfix: Fixed an issue in the emote picker where an emotes tooltip would not properly disappear. (#3686)
- Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662)

## 2.3.5
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/helper/ChannelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,8 @@ void ChannelView::enterEvent(QEvent *)

void ChannelView::leaveEvent(QEvent *)
{
TooltipWidget::instance()->hide();

this->unpause(PauseReason::Mouse);

this->queueLayout();
Expand Down
16 changes: 7 additions & 9 deletions src/widgets/splits/Split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,13 +989,6 @@ void Split::showViewerList()
static QStringList jsonLabels = {"broadcaster", "moderators", "vips",
"staff", "admins", "global_mods",
"viewers"};
QList<QListWidgetItem *> labelList;
for (auto &x : labels)
{
auto label = formatListItemText(x);
label->setForeground(this->theme->accent);
labelList.append(label);
}
auto loadingLabel = new QLabel("Loading...");

NetworkRequest::twitchRequest("https://tmi.twitch.tv/group/user/" +
Expand All @@ -1020,7 +1013,10 @@ void Split::showViewerList()
if (currentCategory.empty())
continue;

chattersList->addItem(labelList.at(i));
auto label = formatListItemText(QString("%1 (%2)").arg(
labels.at(i), localizeNumbers(currentCategory.size())));
label->setForeground(this->theme->accent);
chattersList->addItem(label);
foreach (const QJsonValue &v, currentCategory)
{
chattersList->addItem(formatListItemText(v.toString()));
Expand Down Expand Up @@ -1061,7 +1057,9 @@ void Split::showViewerList()
});

auto listDoubleClick = [=](QString userName) {
if (!labels.contains(userName) && !userName.isEmpty())
// if the list item contains a parentheses it means that
// it's a category label so don't show a usercard
if (!userName.contains("(") && !userName.isEmpty())
{
this->view_->showUserInfoPopup(userName);
}
Expand Down

0 comments on commit 257c046

Please sign in to comment.