diff options
Diffstat (limited to 'src/index.tsx')
| -rwxr-xr-x | src/index.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx index 28ae219..a381e1c 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -182,7 +182,7 @@ function Content() { } export default definePlugin(() => { - const patch = patchPartnerEventStore(); + const patches = patchPartnerEventStore(); return { name: "Bazzite Changelog Viewer", @@ -190,7 +190,9 @@ export default definePlugin(() => { icon: <FaClipboardList />, content: <Content />, onDismount() { - patch.unpatch(); + patches.forEach(patch => { + patch.unpatch(); + }); }, }; }); |
