fix: don't pass unzip job to event loop (#136)

For some reason this broke installation of plugins when another specific
plugin was present (vibrantDeck)
This commit is contained in:
Sefa Eyeoglu
2022-08-09 21:06:33 +02:00
committed by GitHub
parent c9e9c45b37
commit 0dbdb4a143
+1 -7
View File
@@ -97,13 +97,7 @@ class PluginBrowser:
res_zip = BytesIO(data) res_zip = BytesIO(data)
with ProcessPoolExecutor() as executor: with ProcessPoolExecutor() as executor:
logger.debug("Unzipping...") logger.debug("Unzipping...")
ret = await get_event_loop().run_in_executor( ret = self._unzip_to_plugin_dir(res_zip, name, hash)
executor,
self._unzip_to_plugin_dir,
res_zip,
name,
hash
)
if ret: if ret:
logger.info(f"Installed {name} (Version: {version})") logger.info(f"Installed {name} (Version: {version})")
await inject_to_tab("SP", "window.syncDeckyPlugins()") await inject_to_tab("SP", "window.syncDeckyPlugins()")