🐛 Fix missing event name causing issues on the UI (#4796)

Closes #4795
This commit is contained in:
jneilliii authored and GitHub committed 2023-04-17 17:14:00 +02:00
1 parent 12dd7fbff6
commit ff28dd9f26
1 file changed
+3
@@ -16,6 +16,9 @@ class EventManagerPlugin(
"subscriptions": [],
}
events = self._settings.global_get(["events"])
for event in events.get("subscriptions", []):
if "name" not in event:
event["name"] = event["command"]
if events:
my_settings["subscriptions"] = sorted(
events.get("subscriptions", []), key=(lambda x: x["event"])