summaryrefslogtreecommitdiff
path: root/frontend/src/plugin-loader.tsx
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-09-17 23:23:51 -0400
committerAAGaming <aa@mail.catvibers.me>2022-09-17 23:23:51 -0400
commitc4d6731401d3b6dc111a74d086df28704473070d (patch)
treeb8a1cff3ae32eac720300fd03093f9890ddf82cb /frontend/src/plugin-loader.tsx
parentfded2fa8bfc52ae29848a343483c68f6955feb0c (diff)
downloaddecky-loader-c4d6731401d3b6dc111a74d086df28704473070d.tar.gz
decky-loader-c4d6731401d3b6dc111a74d086df28704473070d.zip
fix updater for new installs, fix file picker patch, fix scrolling on patch notes, fix tasks dir
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
-rw-r--r--frontend/src/plugin-loader.tsx14
1 files changed, 11 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 493e5935..a17969a7 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -66,14 +66,14 @@ class PluginLoader extends Logger {
});
this.routerHook.addRoute('/decky/store', () => (
- <WithSuspense>
+ <WithSuspense route={true}>
<StorePage />
</WithSuspense>
));
this.routerHook.addRoute('/decky/settings', () => {
return (
<DeckyStateContextProvider deckyState={this.deckyState}>
- <WithSuspense>
+ <WithSuspense route={true}>
<SettingsPage />
</WithSuspense>
</DeckyStateContextProvider>
@@ -81,11 +81,19 @@ class PluginLoader extends Logger {
});
initFilepickerPatches();
+
+ this.updateVersion();
}
- public async notifyUpdates() {
+ public async updateVersion() {
const versionInfo = (await callUpdaterMethod('get_version')).result as VerInfo;
this.deckyState.setVersionInfo(versionInfo);
+
+ return versionInfo;
+ }
+
+ public async notifyUpdates() {
+ const versionInfo = await this.updateVersion();
if (versionInfo?.remote && versionInfo?.remote?.tag_name != versionInfo?.current) {
this.toaster.toast({
title: 'Decky',