summaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rwxr-xr-xsrc/index.tsx6
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();
+ });
},
};
});