From c4d6731401d3b6dc111a74d086df28704473070d Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Sat, 17 Sep 2022 23:23:51 -0400
Subject: fix updater for new installs, fix file picker patch, fix scrolling on
 patch notes, fix tasks dir

---
 frontend/src/plugin-loader.tsx | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

(limited to 'frontend/src/plugin-loader.tsx')

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',
-- 
cgit v1.2.3

