forked from OpenGamers/abaddon
use checkmark for verified bot flag
This commit is contained in:
@@ -117,7 +117,10 @@ void ProfileWindow::OnFetchProfile(const UserProfileData &data) {
|
|||||||
if (name == "unknown") continue;
|
if (name == "unknown") continue;
|
||||||
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
||||||
try {
|
try {
|
||||||
pixbuf = Gdk::Pixbuf::create_from_file("./res/" + name + ".png", 24, 24);
|
if (name == "verifiedbot")
|
||||||
|
pixbuf = Gdk::Pixbuf::create_from_file("./res/checkmark.png", 24, 24);
|
||||||
|
else
|
||||||
|
pixbuf = Gdk::Pixbuf::create_from_file("./res/" + name + ".png", 24, 24);
|
||||||
} catch (const Glib::Exception &e) {
|
} catch (const Glib::Exception &e) {
|
||||||
pixbuf = Abaddon::Get().GetImageManager().GetPlaceholder(24);
|
pixbuf = Abaddon::Get().GetImageManager().GetPlaceholder(24);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user