apps-menu: Respect user's favorite apps order

https://bugzilla.gnome.org/show_bug.cgi?id=704248
This commit is contained in:
Jiro Matsuzawa
2013-08-27 10:13:40 +09:00
parent c1fead9dad
commit 17663f5f20
+3 -3
View File
@@ -548,6 +548,9 @@ const ApplicationsButton = new Lang.Class({
if (category_menu_id) {
applist = this.applicationsByCategory[category_menu_id];
applist.sort(function(a,b) {
return a.get_name().toLowerCase() > b.get_name().toLowerCase();
});
} else {
applist = new Array();
let favorites = global.settings.get_strv('favorite-apps');
@@ -558,9 +561,6 @@ const ApplicationsButton = new Lang.Class({
}
}
applist.sort(function(a,b) {
return a.get_name().toLowerCase() > b.get_name().toLowerCase();
});
return applist;
},