Send virtual file path done event to remove the loading screen

This commit is contained in:
shortcutme 2017-02-19 12:23:21 +01:00
parent 04492a3262
commit 1897bce814
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 1 deletions

View File

@ -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: