Fix signal connection nodiscard warnings (#4818)

This commit is contained in:
pajlada
2023-09-16 13:52:51 +02:00
committed by GitHub
parent 2d5f078306
commit 8fe3af3522
40 changed files with 709 additions and 554 deletions
+12 -11
View File
@@ -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();