From 84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 24 Oct 2022 19:14:56 -0400 Subject: 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 --- backend/browser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/browser.py') diff --git a/backend/browser.py b/backend/browser.py index 3007ae18..69f82bdb 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -16,7 +16,7 @@ from zipfile import ZipFile # Local modules from helpers import get_ssl_context, get_user, get_user_group, download_remote_binary_to_path -from injector import get_tab, inject_to_tab +from injector import get_gamepadui_tab logger = getLogger("Browser") @@ -104,7 +104,7 @@ class PluginBrowser: async def uninstall_plugin(self, name): if self.loader.watcher: self.loader.watcher.disabled = True - tab = await get_tab("SP") + tab = await get_gamepadui_tab() try: logger.info("uninstalling " + name) logger.info(" at dir " + self.find_plugin_folder(name)) @@ -172,7 +172,7 @@ class PluginBrowser: async def request_plugin_install(self, artifact, name, version, hash): request_id = str(time()) self.install_requests[request_id] = PluginInstallContext(artifact, name, version, hash) - tab = await get_tab("SP") + tab = await get_gamepadui_tab() await tab.open_websocket() await tab.evaluate_js(f"DeckyPluginLoader.addPluginInstallPrompt('{name}', '{version}', '{request_id}', '{hash}')") -- cgit v1.2.3