Remove dead code for 'play-always'
This commit is contained in:
parent
6ee36752bd
commit
ac47d254a3
@ -198,7 +198,6 @@ class Core(
|
|||||||
- 'tracklist' fill the tracklist
|
- 'tracklist' fill the tracklist
|
||||||
- 'mode' set tracklist properties (consume, random, repeat, single)
|
- 'mode' set tracklist properties (consume, random, repeat, single)
|
||||||
- 'play-last' restore play state ('tracklist' also required)
|
- 'play-last' restore play state ('tracklist' also required)
|
||||||
- 'play-always' start playing ('tracklist' also required)
|
|
||||||
- 'mixer' set mixer volume and mute state
|
- 'mixer' set mixer volume and mute state
|
||||||
- 'history' restore history
|
- 'history' restore history
|
||||||
|
|
||||||
|
|||||||
@ -608,8 +608,6 @@ class PlaybackController(object):
|
|||||||
def _load_state(self, state, coverage):
|
def _load_state(self, state, coverage):
|
||||||
if state:
|
if state:
|
||||||
new_state = None
|
new_state = None
|
||||||
if 'play-always' in coverage:
|
|
||||||
new_state = PlaybackState.PLAYING
|
|
||||||
if 'play-last' in coverage:
|
if 'play-last' in coverage:
|
||||||
new_state = state.state
|
new_state = state.state
|
||||||
if state.tlid is not None:
|
if state.tlid is not None:
|
||||||
|
|||||||
@ -1155,7 +1155,7 @@ class TesetCorePlaybackExportRestore(BaseTest):
|
|||||||
|
|
||||||
state = PlaybackState(
|
state = PlaybackState(
|
||||||
time_position=0, state='playing', tlid=tl_tracks[2].tlid)
|
time_position=0, state='playing', tlid=tl_tracks[2].tlid)
|
||||||
coverage = ['play-always']
|
coverage = ['play-last']
|
||||||
self.core.playback._load_state(state, coverage)
|
self.core.playback._load_state(state, coverage)
|
||||||
self.replay_events()
|
self.replay_events()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user