refactor: Move TwitchBadges to Application (#5096)
* refactor: Move TwitchBadges to Application * refactor: Use named initializers * refactor: Use `empty()` instead of `size() > 0` * refactor: use emplace instead of push into the callback queue
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "BadgePickerDialog.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "providers/twitch/TwitchBadges.hpp"
|
||||
#include "singletons/Resources.hpp"
|
||||
|
||||
@@ -57,7 +58,7 @@ BadgePickerDialog::BadgePickerDialog(QList<DisplayBadge> badges,
|
||||
updateBadge(0);
|
||||
|
||||
// Set icons.
|
||||
TwitchBadges::instance()->getBadgeIcons(
|
||||
getIApp()->getTwitchBadges()->getBadgeIcons(
|
||||
badges,
|
||||
[&dropdown = this->dropdown_](QString identifier, const QIconPtr icon) {
|
||||
if (!dropdown)
|
||||
|
||||
Reference in New Issue
Block a user