From 698ec52d5c056f3584c46e67b199adcfba9f8d2e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 30 Jun 2021 18:15:03 -0400 Subject: try loading resources from share, fallback to cwd --- components/memberlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/memberlist.cpp') diff --git a/components/memberlist.cpp b/components/memberlist.cpp index ed02505..e91ce88 100644 --- a/components/memberlist.cpp +++ b/components/memberlist.cpp @@ -17,7 +17,8 @@ MemberListUserRow::MemberListUserRow(const std::optional &guild, cons static bool crown = Abaddon::Get().GetSettings().GetShowOwnerCrown(); if (crown && guild.has_value() && guild->OwnerID == data.ID) { try { - auto pixbuf = Gdk::Pixbuf::create_from_file("./res/crown.png", 12, 12); + const static auto crown_path = Abaddon::GetResPath("/crown.png"); + auto pixbuf = Gdk::Pixbuf::create_from_file(crown_path, 12, 12); m_crown = Gtk::manage(new Gtk::Image(pixbuf)); m_crown->set_valign(Gtk::ALIGN_CENTER); m_crown->set_margin_end(8); -- cgit v1.2.3