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 @@ -513,10 +513,11 @@ def optionsButtonClicked(self, from_item=False):
513
513
if len (mli .dataSource .media ) > 1 :
514
514
options .append ({'key' : 'play_version' , 'display' : T (32451 , 'Play Version...' )})
515
515
516
- if mli .dataSource .isWatched and not mli .dataSource .viewOffset .asInt ():
517
- options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
518
- else :
516
+ inProgress = mli .dataSource .viewOffset .asInt ()
517
+ if not mli .dataSource .isWatched or inProgress :
519
518
options .append ({'key' : 'mark_watched' , 'display' : T (32319 , 'Mark Played' )})
519
+ if mli .dataSource .isWatched or inProgress :
520
+ options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
520
521
521
522
# if True:
522
523
# options.append({'key': 'add_to_playlist', 'display': '[COLOR FF808080]Add To Playlist[/COLOR]'})
Original file line number Diff line number Diff line change @@ -183,10 +183,11 @@ def optionsButtonClicked(self):
183
183
if len (self .video .media ) > 1 :
184
184
options .append ({'key' : 'play_version' , 'display' : T (32451 , 'Play Version...' )})
185
185
186
- if self .video .isWatched and not self .video .viewOffset .asInt ():
187
- options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
188
- else :
186
+ inProgress = self .video .viewOffset .asInt ()
187
+ if not self .video .isWatched or inProgress :
189
188
options .append ({'key' : 'mark_watched' , 'display' : T (32319 , 'Mark Played' )})
189
+ if self .video .isWatched or inProgress :
190
+ options .append ({'key' : 'mark_unwatched' , 'display' : T (32318 , 'Mark Unplayed' )})
190
191
191
192
options .append (dropdown .SEPARATOR )
192
193
You can’t perform that action at this time.
0 commit comments