Small fixes for sidebar application bits
We need to set the .name property, also skip unknown apps.
This commit is contained in:
parent
8a56b990dd
commit
b45cd0a4eb
@ -290,6 +290,7 @@ function AppsWidgetInfo(appInfo) {
|
||||
AppsWidgetInfo.prototype = {
|
||||
_init : function(appInfo) {
|
||||
this._info = appInfo;
|
||||
this.name = appInfo.get_name();
|
||||
},
|
||||
|
||||
createIcon : function(size) {
|
||||
@ -319,6 +320,8 @@ AppsWidget.prototype = {
|
||||
let apps = appSystem.get_favorites();
|
||||
for (let i = 0; i < apps.length; i++) {
|
||||
let app = appSystem.lookup_app(apps[i]);
|
||||
if (!app)
|
||||
continue;
|
||||
this.addItem(new AppsWidgetInfo(app));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user