diff options
| author | Victor Borges <victor1882@outlook.com> | 2025-04-30 00:10:42 -0300 |
|---|---|---|
| committer | Victor Borges <victor1882@outlook.com> | 2025-04-30 00:10:42 -0300 |
| commit | 09b26542752b4c6b13e91ceae3255b67bd98f82c (patch) | |
| tree | 7018a39f3b71531ae74c168d5c5182b4740242f9 /src/index.tsx | |
| parent | 0e8fa29ac63933d3c4b5f9071c174cc2f26d99db (diff) | |
| download | decky-bazzite-buddy-09b26542752b4c6b13e91ceae3255b67bd98f82c.tar.gz decky-bazzite-buddy-09b26542752b4c6b13e91ceae3255b67bd98f82c.zip | |
add pagination support
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(); + }); }, }; }); |
