Simplify boolean

This commit is contained in:
Brian Pepple 2020-09-27 11:10:51 -04:00 committed by Odd Stråbø
parent ba164d1358
commit b110f1cf13
9 changed files with 9 additions and 9 deletions

View file

@ -95,7 +95,7 @@ class Actions(object):
if choice is None:
raise Exception("User backed out of resume dialog.")
item["resumePlayback"] = False if not choice else True
item["resumePlayback"] = bool(choice)
if settings('enableCinema.bool') and not item["resumePlayback"]:
self._set_intros(item)