[gnome-shell-extensions/wip/fmuellner/alacarte-compat: 2/5] apps-menu: Don't override sort order
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/alacarte-compat: 2/5] apps-menu: Don't override sort order
- Date: Sat, 25 Nov 2017 05:51:31 +0000 (UTC)
commit 8bd35eeb09b75dce18aa88dc6a23a21da4980668
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Oct 13 00:30:31 2017 +0200
apps-menu: Don't override sort order
Keep the order in which GMenu returns loaded apps, so users can
reorder entries in Alacarte.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/27
extensions/apps-menu/extension.js | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index e430140..dba31e7 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -745,9 +745,6 @@ 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');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]