LookingGlass: Correct timeout usage
Calling Mainloop.source_remove() on the timeout ID will not reset it, and we're already removing the timeout by returning GLib.SOURCE_REMOVE in the callback.
This commit is contained in:
parent
cd2bd7685a
commit
68b2d5fcf0
@ -843,7 +843,7 @@ const LookingGlass = new Lang.Class({
|
||||
System.gc();
|
||||
this._timeoutId = Mainloop.timeout_add(500, Lang.bind(this, function () {
|
||||
gcIcon.icon_name = 'gnome-fs-trash-full';
|
||||
Mainloop.source_remove(this._timeoutId);
|
||||
this._timeoutId = 0;
|
||||
return GLib.SOURCE_REMOVE;
|
||||
}));
|
||||
GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name = \'gnome-fs-trash-full\'');
|
||||
|
Loading…
Reference in New Issue
Block a user