diff --git a/js/ui/status/backgroundApps.js b/js/ui/status/backgroundApps.js index 606fa3348..49878c134 100644 --- a/js/ui/status/backgroundApps.js +++ b/js/ui/status/backgroundApps.js @@ -146,6 +146,14 @@ class BackgroundAppsToggle extends QuickToggle { null, Gio.DBusProxyFlags.DO_NOT_AUTO_START); + this._listTitle = new PopupMenu.PopupMenuItem( + _('Apps known to be running without a window'), + {reactive: false}); + this._listTitle.label.clutter_text.set({ + line_wrap: true, + }); + this.menu.addMenuItem(this._listTitle); + this._appsSection = new PopupMenu.PopupMenuSection(); this.menu.addMenuItem(this._appsSection); @@ -183,6 +191,7 @@ class BackgroundAppsToggle extends QuickToggle { '%d Background App', '%d Background Apps', nBackgroundApps).format(nBackgroundApps); + this._listTitle.visible = nBackgroundApps > 0; this._appsSection.removeAll();