mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 12:21:58 +00:00
fix plugins not loading on install
This commit is contained in:
@@ -62,9 +62,9 @@ const callPluginMethod = DeckyBackend.callable<[pluginName: string, method: stri
|
|||||||
|
|
||||||
class PluginLoader extends Logger {
|
class PluginLoader extends Logger {
|
||||||
private plugins: Plugin[] = [];
|
private plugins: Plugin[] = [];
|
||||||
private errorBoundaryHook: ErrorBoundaryHook = new ErrorBoundaryHook();
|
public errorBoundaryHook: ErrorBoundaryHook = new ErrorBoundaryHook();
|
||||||
private tabsHook: TabsHook = new TabsHook();
|
private tabsHook: TabsHook = new TabsHook();
|
||||||
private routerHook: RouterHook = new RouterHook();
|
public routerHook: RouterHook = new RouterHook();
|
||||||
public toaster: Toaster = new Toaster();
|
public toaster: Toaster = new Toaster();
|
||||||
private deckyState: DeckyState = new DeckyState();
|
private deckyState: DeckyState = new DeckyState();
|
||||||
// stores a map of plugin names to all their event listeners
|
// stores a map of plugin names to all their event listeners
|
||||||
@@ -324,7 +324,7 @@ class PluginLoader extends Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.reloadLock = true;
|
if (useQueue) this.reloadLock = true;
|
||||||
this.log(`Trying to load ${name}`);
|
this.log(`Trying to load ${name}`);
|
||||||
|
|
||||||
this.unloadPlugin(name);
|
this.unloadPlugin(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user