mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: check get_icon return non nullpt
This commit is contained in:
parent
fd11711673
commit
374d5ae5a1
@ -95,7 +95,7 @@ static std::string get_from_desktop_app_info(const std::string &app_id)
|
||||
if (!app_info)
|
||||
app_info = Gio::DesktopAppInfo::create_from_filename(prefix + folder + app_id + suffix);
|
||||
|
||||
if (app_info)
|
||||
if (app_info && app_info->get_icon() != nullptr)
|
||||
return app_info->get_icon()->to_string();
|
||||
|
||||
return "";
|
||||
|
Loading…
Reference in New Issue
Block a user