From 09b26542752b4c6b13e91ceae3255b67bd98f82c Mon Sep 17 00:00:00 2001
From: Victor Borges <victor1882@outlook.com>
Date: Wed, 30 Apr 2025 00:10:42 -0300
Subject: add pagination support

---
 src/index.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/index.tsx')

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();
+      });
     },
   };
 });
-- 
cgit v1.2.3

