mirror of
https://github.com/elementary/gala.git
synced 2024-12-18 06:41:36 +03:00
utils: No error to catch here
This commit is contained in:
parent
c594f8e9a7
commit
3fc7213841
@ -130,18 +130,14 @@ namespace Gala
|
||||
string? icon_key = null;
|
||||
|
||||
if (app != null && app.get_desktop_file () != null) {
|
||||
try {
|
||||
var appinfo = new DesktopAppInfo.from_filename (app.get_desktop_file ());
|
||||
if (appinfo != null) {
|
||||
icon = Plank.Drawing.DrawingService.get_icon_from_gicon (appinfo.get_icon ());
|
||||
icon_key = "%s::%i".printf (icon, size);
|
||||
if (ignore_cache || (image = icon_pixbuf_cache.get (icon_key)) == null) {
|
||||
image = Plank.Drawing.DrawingService.load_icon (icon, size, size);
|
||||
not_cached = true;
|
||||
}
|
||||
var appinfo = new DesktopAppInfo.from_filename (app.get_desktop_file ());
|
||||
if (appinfo != null) {
|
||||
icon = Plank.Drawing.DrawingService.get_icon_from_gicon (appinfo.get_icon ());
|
||||
icon_key = "%s::%i".printf (icon, size);
|
||||
if (ignore_cache || (image = icon_pixbuf_cache.get (icon_key)) == null) {
|
||||
image = Plank.Drawing.DrawingService.load_icon (icon, size, size);
|
||||
not_cached = true;
|
||||
}
|
||||
} catch (Error e) {
|
||||
warning (e.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user