diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-02-22 22:00:23 -0500 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2023-02-22 22:00:30 -0500 |
| commit | 97bb3fa4c879cf2a517e59b1f7177c9e49e0a692 (patch) | |
| tree | 5e60e481a02d31ac4c88a780bdd853a6906a4b67 /frontend/src/tabs-hook.tsx | |
| parent | 611245aec9c056383692fac8a1214efd4718449f (diff) | |
| download | decky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.tar.gz decky-loader-97bb3fa4c879cf2a517e59b1f7177c9e49e0a692.zip | |
Fix loader on feb 22 2023 beta
Diffstat (limited to 'frontend/src/tabs-hook.tsx')
| -rw-r--r-- | frontend/src/tabs-hook.tsx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/frontend/src/tabs-hook.tsx b/frontend/src/tabs-hook.tsx index d9c76ca6..3498b1aa 100644 --- a/frontend/src/tabs-hook.tsx +++ b/frontend/src/tabs-hook.tsx @@ -128,22 +128,23 @@ class TabsHook extends Logger { let deckyTabAmount = existingTabs.reduce((prev: any, cur: any) => (cur.decky ? prev + 1 : prev), 0); if (deckyTabAmount == this.tabs.length) { for (let tab of existingTabs) { - if (tab?.decky) tab.panel.props.setter[0](visible); + if (tab?.decky && tab?.qAMVisibilitySetter) tab?.qAMVisibilitySetter(visible); } return; } for (const { title, icon, content, id } of this.tabs) { - existingTabs.push({ + const tab: any = { key: id, title, tab: icon, decky: true, - panel: ( - <QuickAccessVisibleStateProvider initial={visible} setter={[]}> - {content} - </QuickAccessVisibleStateProvider> - ), - }); + }; + tab.panel = ( + <QuickAccessVisibleStateProvider initial={visible} tab={tab}> + {content} + </QuickAccessVisibleStateProvider> + ); + existingTabs.push(tab); } } } |
