Simplify code

This commit is contained in:
croneter 2018-04-03 17:07:37 +02:00
parent 14ef7ae247
commit c12c9c08d8

View file

@ -431,14 +431,7 @@ class SpecialMonitor(Thread):
if getInfoLabel('Control.GetLabel(1002)') in strings: if getInfoLabel('Control.GetLabel(1002)') in strings:
# Remember that the item IS indeed resumable # Remember that the item IS indeed resumable
control = int(Window(10106).getFocusId()) control = int(Window(10106).getFocusId())
if control == 1002: state.RESUME_PLAYBACK = True if control == 1001 else False
# Start from beginning
state.RESUME_PLAYBACK = False
elif control == 1001:
state.RESUME_PLAYBACK = True
else:
# User chose something else from the context menu
state.RESUME_PLAYBACK = False
else: else:
# Different context menu is displayed # Different context menu is displayed
state.RESUME_PLAYBACK = False state.RESUME_PLAYBACK = False