From 1897bce8147c6c167c6fc1406b6df5c6c5e72842 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 19 Feb 2017 12:23:21 +0100 Subject: [PATCH] Send virtual file path done event to remove the loading screen --- plugins/FilePack/FilePackPlugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/FilePack/FilePackPlugin.py b/plugins/FilePack/FilePackPlugin.py index 3cfbe3d7..4a0f2cad 100644 --- a/plugins/FilePack/FilePackPlugin.py +++ b/plugins/FilePack/FilePackPlugin.py @@ -48,7 +48,10 @@ class UiRequestPlugin(object): site = self.server.site_manager.get(path_parts["address"]) if not site: self.error404(path) - result = site.needFile(site.storage.getInnerPath(archive_path), priority=5) # Wait until file downloads + # Wait until file downloads + result = site.needFile(site.storage.getInnerPath(archive_path), priority=10) + # Send virutal file path download finished event to remove loading screen + site.updateWebsocket(file_done=site.storage.getInnerPath(file_path)) if not result: return self.error404(path) try: