mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-10 16:26:35 +01:00
Fix: Extension crashing, when no associatedRole can be found
There are situations, where no `associatedRole` for a given `indicatorContainer` can be found (e.g. the GameMode GNOME Shell Extension seems to cause such a situation, when you have it enabled and lock and unlock GNOME). Previously this would crash the extension. With this fix, those `indicatorContainer`s just get ignored.
This commit is contained in:
parent
e76b24e813
commit
03fb3355b4
1 changed files with 1 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ class Extension {
|
|||
// First get the role associated with the current indicator
|
||||
// container.
|
||||
const associatedRole = indicatorContainerRoleMap.get(indicatorContainer);
|
||||
if (!associatedRole) continue;
|
||||
|
||||
// Handle an AppIndicator/KStatusNotifierItem item differently.
|
||||
if (associatedRole.startsWith("appindicator-")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue