revert detection inexisting file in setIconImage()
we want the user to know that the path he provided is wrong.
This commit is contained in:
parent
771d6df3b3
commit
35463b302c
|
@ -111,12 +111,9 @@ firetray.Handler.setIconImage = function(filename) {
|
|||
return false;
|
||||
LOG(filename);
|
||||
|
||||
let pixbuf = gdk.gdk_pixbuf_new_from_file(filename, null);
|
||||
if (strEquals(pixbuf, gdk.GdkPixbuf.ptr(null)))
|
||||
return false;
|
||||
|
||||
try {
|
||||
gtk.gtk_status_icon_set_from_pixbuf(firetray.StatusIcon.trayIcon, pixbuf);
|
||||
gtk.gtk_status_icon_set_from_file(firetray.StatusIcon.trayIcon,
|
||||
filename);
|
||||
} catch (x) {
|
||||
ERROR(x);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue