Fix signal connection nodiscard warnings (#4818)
This commit is contained in:
@@ -20,22 +20,23 @@ AccountSwitchWidget::AccountSwitchWidget(QWidget *parent)
|
||||
this->addItem(userName);
|
||||
}
|
||||
|
||||
app->accounts->twitch.userListUpdated.connect([=, this]() {
|
||||
this->blockSignals(true);
|
||||
this->managedConnections_.managedConnect(
|
||||
app->accounts->twitch.userListUpdated, [=, this]() {
|
||||
this->blockSignals(true);
|
||||
|
||||
this->clear();
|
||||
this->clear();
|
||||
|
||||
this->addItem(ANONYMOUS_USERNAME_LABEL);
|
||||
this->addItem(ANONYMOUS_USERNAME_LABEL);
|
||||
|
||||
for (const auto &userName : app->accounts->twitch.getUsernames())
|
||||
{
|
||||
this->addItem(userName);
|
||||
}
|
||||
for (const auto &userName : app->accounts->twitch.getUsernames())
|
||||
{
|
||||
this->addItem(userName);
|
||||
}
|
||||
|
||||
this->refreshSelection();
|
||||
this->refreshSelection();
|
||||
|
||||
this->blockSignals(false);
|
||||
});
|
||||
this->blockSignals(false);
|
||||
});
|
||||
|
||||
this->refreshSelection();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user