Codebase list gnome-shell-extension-appindicator / fa50123
statusNotifierWatcher: Properly handle null services They may be added to the set in case they match service name Marco Trevisan (TreviƱo) authored 1 year, 2 months ago Marco Trevisan committed 1 year, 2 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
160160 const ids = services.map(s => Util.indicatorId(s, name, path));
161161 if (ids.every(id => !this._items.has(id))) {
162162 const service = services.find(s =>
163 s.startsWith('org.kde.StatusNotifierItem')) || services[0];
163 s && s.startsWith('org.kde.StatusNotifierItem')) || services[0];
164164 const id = Util.indicatorId(
165165 path === DEFAULT_ITEM_OBJECT_PATH ? service : null,
166166 name, path);