File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -522,10 +522,11 @@ def optionsButtonClicked(self, from_item=False):
522
522
if len (mli .dataSource .media ) > 1 :
523
523
options .append ({'key' : 'play_version' , 'display' : T (32451 , 'Play Version...' )})
524
524
525
- if mli .dataSource .isWatched and not mli .dataSource .viewOffset .asInt ():
526
- options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
527
- else :
525
+ inProgress = mli .dataSource .viewOffset .asInt ()
526
+ if not mli .dataSource .isWatched or inProgress :
528
527
options .append ({'key' : 'mark_watched' , 'display' : T (32319 , 'Mark Played' )})
528
+ if mli .dataSource .isWatched or inProgress :
529
+ options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
529
530
530
531
# if True:
531
532
# options.append({'key': 'add_to_playlist', 'display': '[COLOR FF808080]Add To Playlist[/COLOR]'})
Original file line number Diff line number Diff line change @@ -193,10 +193,11 @@ def optionsButtonClicked(self):
193
193
if len (self .video .media ) > 1 :
194
194
options .append ({'key' : 'play_version' , 'display' : T (32451 , 'Play Version...' )})
195
195
196
- if self .video .isWatched and not self .video .viewOffset .asInt ():
197
- options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
198
- else :
196
+ inProgress = self .video .viewOffset .asInt ()
197
+ if not self .video .isWatched or inProgress :
199
198
options .append ({'key' : 'mark_watched' , 'display' : T (32319 , 'Mark Played' )})
199
+ if self .video .isWatched or inProgress :
200
+ options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
200
201
201
202
options .append (dropdown .SEPARATOR )
202
203
You can’t perform that action at this time.
0 commit comments