fix: rollback to popper.js v1, fix playmode dropdown, and now volume popover can be closed by clicking outside.

This commit is contained in:
Terry Geng
2020-05-16 16:52:32 +08:00
parent 1a7691cd1c
commit 465ab39c7a
5 changed files with 28 additions and 19 deletions

View File

@ -56,7 +56,9 @@ class FileItem(BaseItem):
super().__init__(from_dict)
self.artist = from_dict['artist']
self.thumbnail = from_dict['thumbnail']
if not self.validate():
try:
self.validate()
except ValidationFailedError:
self.ready = "failed"
self.type = "file"