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