Use deckyState in uninstall menu (fixes #98) (#100)

This commit is contained in:
botato
2022-07-03 02:14:43 +00:00
committed by GitHub
parent ee8aa98446
commit 085aacea06
3 changed files with 13 additions and 9 deletions
+7 -5
View File
@@ -44,11 +44,13 @@ class PluginLoader extends Logger {
});
this.routerHook.addRoute('/decky/store', () => <StorePage />);
this.routerHook.addRoute('/decky/settings', () => <SettingsPage />);
}
public getPlugins() {
return this.plugins;
this.routerHook.addRoute('/decky/settings', () => {
return (
<DeckyStateContextProvider deckyState={this.deckyState}>
<SettingsPage />
</DeckyStateContextProvider>
);
});
}
public addPluginInstallPrompt(artifact: string, version: string, request_id: string, hash: string) {