Make ShellAppMonitor and ShellAppSystem singletons, remove unused code in appDisplay
We shouldn't create multiple instances of either. Also remove a bit of unused code in appDisplay.
This commit is contained in:
@@ -104,7 +104,7 @@ function getAppInfo(appId) {
|
||||
//
|
||||
// Return value: the list of #AppInfo
|
||||
function getMostUsedApps(count) {
|
||||
let appMonitor = new Shell.AppMonitor();
|
||||
let appMonitor = Shell.AppMonitor.get_default();
|
||||
|
||||
// Ask for more apps than we need, since the list of recently used
|
||||
// apps might contain an app we don't have a desktop file for
|
||||
|
Reference in New Issue
Block a user