From f9ff518e6d6368f65ead7634f459498b183081f2 Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:44:38 +0100 Subject: attempt to add plugin events to the plugin frontend api. unable to test right now though --- backend/decky_loader/plugin/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/decky_loader/plugin/plugin.py') diff --git a/backend/decky_loader/plugin/plugin.py b/backend/decky_loader/plugin/plugin.py index cad323f4..02d80470 100644 --- a/backend/decky_loader/plugin/plugin.py +++ b/backend/decky_loader/plugin/plugin.py @@ -59,7 +59,7 @@ class PluginWrapper: if line != None: res = loads(line) if res["type"] == SocketMessageType.EVENT.value: - create_task(self.emitted_event_callback(res["event"], res["data"])) + create_task(self.emitted_event_callback(res["event"], res["args"])) elif res["type"] == SocketMessageType.RESPONSE.value: self._method_call_requests.pop(res["id"]).set_result(res) except: -- cgit v1.2.3