From c02a78ed6e1d9c21e84b60d9a5b077d0ee547a8f Mon Sep 17 00:00:00 2001
From: AAGaming <aagaming@riseup.net>
Date: Thu, 27 Jun 2024 00:08:45 -0400
Subject: fix plugins not loading on install

---
 frontend/src/plugin-loader.tsx | 6 +++---
 1 file changed, 3 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 9726b3f2..e84343c4 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -62,9 +62,9 @@ const callPluginMethod = DeckyBackend.callable<[pluginName: string, method: stri
 
 class PluginLoader extends Logger {
   private plugins: Plugin[] = [];
-  private errorBoundaryHook: ErrorBoundaryHook = new ErrorBoundaryHook();
+  public errorBoundaryHook: ErrorBoundaryHook = new ErrorBoundaryHook();
   private tabsHook: TabsHook = new TabsHook();
-  private routerHook: RouterHook = new RouterHook();
+  public routerHook: RouterHook = new RouterHook();
   public toaster: Toaster = new Toaster();
   private deckyState: DeckyState = new DeckyState();
   // stores a map of plugin names to all their event listeners
@@ -324,7 +324,7 @@ class PluginLoader extends Logger {
     }
 
     try {
-      this.reloadLock = true;
+      if (useQueue) this.reloadLock = true;
       this.log(`Trying to load ${name}`);
 
       this.unloadPlugin(name);
-- 
cgit v1.2.3

