Reset bas files before site update when changing autodownload status in sidebar
This commit is contained in:
parent
f84c394e09
commit
55417a1103
1 changed files with 2 additions and 1 deletions
|
@ -580,7 +580,8 @@ class UiWebsocketPlugin(object):
|
|||
if "ADMIN" not in permissions:
|
||||
return self.response(to, "You don't have permission to run this command")
|
||||
self.site.settings["autodownloadoptional"] = bool(owned)
|
||||
self.site.update(check_files=True)
|
||||
self.site.bad_files = {}
|
||||
gevent.spawn(self.site.update, check_files=True)
|
||||
self.site.worker_manager.removeGoodFileTasks()
|
||||
|
||||
def actionDbReload(self, to):
|
||||
|
|
Loading…
Reference in a new issue