diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-10-24 19:14:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-24 16:14:56 -0700 |
| commit | 84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10 (patch) | |
| tree | 20b13066c6256cc6ca1beac085094c7964226a37 /backend/loader.py | |
| parent | 2e6b3834da357c7e81821ce60bad36f54dd9fa6e (diff) | |
| download | decky-loader-84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10.tar.gz decky-loader-84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10.zip | |
preview 10/21/2022 fixes (#234)
* initial fixes: everything working except toasts and patch notes
* tabshook changes, disable toaster for now
* prettier
* oops
* implement custom toaster because I am tired of Valve's shit
also fix QAM not injecting sometimes
* remove extra logging
* add findSP, fix patch notes, fix vscode screwup
* fix patch notes
* show error when plugin frontends fail to load
* add get_tab_lambda
* add css and has_element helpers to Tab
* small modals fixup
* Don't forceUpdate QuickAccess on stable
* add routes prop used to get tabs component
* add more dev utils to DFL global
Diffstat (limited to 'backend/loader.py')
| -rw-r--r-- | backend/loader.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/loader.py b/backend/loader.py index b4559180..8c48c7ae 100644 --- a/backend/loader.py +++ b/backend/loader.py @@ -15,7 +15,7 @@ try: except UnsupportedLibc: from watchdog.observers.fsevents import FSEventsObserver as Observer -from injector import get_tab, inject_to_tab +from injector import get_tab, get_gamepadui_tab from plugin import PluginWrapper @@ -141,7 +141,8 @@ class Loader: print_exc() async def dispatch_plugin(self, name, version): - await inject_to_tab("SP", f"window.importDeckyPlugin('{name}', '{version}')") + gpui_tab = await get_gamepadui_tab() + await gpui_tab.evaluate_js(f"window.importDeckyPlugin('{name}', '{version}')") def import_plugins(self): self.logger.info(f"import plugins from {self.plugin_path}") |
