fix cached guild icons not being resized

This commit is contained in:
ouwou 2020-09-20 02:29:13 -04:00
parent 4b7cdbd129
commit b964054cc1

View File

@ -60,7 +60,7 @@ ChannelListRowGuild::ChannelListRowGuild(const Guild *data) {
auto buf = Abaddon::Get().GetImageManager().GetFromURLIfCached(data->GetIconURL("png", "32"));
if (buf)
m_icon = Gtk::manage(new Gtk::Image(buf));
m_icon = Gtk::manage(new Gtk::Image(buf->scale_simple(24, 24, Gdk::INTERP_BILINEAR)));
else {
m_icon = Gtk::manage(new Gtk::Image(Abaddon::Get().GetImageManager().GetPlaceholder(24)));
Abaddon::Get().GetImageManager().LoadFromURL(data->GetIconURL("png", "32"), [this](Glib::RefPtr<Gdk::Pixbuf> ldbuf) {