[appIcon] Fix reference error when favoriting an app
This commit is contained in:
parent
a336ed79ae
commit
bda7d3994b
@ -557,7 +557,8 @@ AppIconMenu.prototype = {
|
|||||||
this._source.app.launch();
|
this._source.app.launch();
|
||||||
this.emit('activate-window', null);
|
this.emit('activate-window', null);
|
||||||
} else if (child == this._toggleFavoriteMenuItem) {
|
} else if (child == this._toggleFavoriteMenuItem) {
|
||||||
let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
|
let favs = AppFavorites.getAppFavorites();
|
||||||
|
let isFavorite = favs.isFavorite(this._source.app.get_id());
|
||||||
if (isFavorite)
|
if (isFavorite)
|
||||||
favs.removeFavorite(this._source.app.get_id());
|
favs.removeFavorite(this._source.app.get_id());
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user