Merge pull request #239 from norepro/fix-repeat-with-folder
Fix ignored repeat with folder
This commit is contained in:
commit
3e7ace652c
1 changed files with 7 additions and 1 deletions
|
|
@ -1334,6 +1334,12 @@ impl Application for App {
|
|||
// user (or because it was played before), the player will collapse it and jump
|
||||
// to the next file/folder after it.
|
||||
|
||||
if self.flags.config_state.player_state.repeat == RepeatState::Track {
|
||||
// we hook Message::PlayNext to the EOS signal. iced_video_player always emits EOS regardless of
|
||||
// looping state, so do nothing if repeat is set.
|
||||
return Command::none();
|
||||
}
|
||||
|
||||
//first we get info about current media id & position in nav_bar
|
||||
let curr_id = self.nav_model.active();
|
||||
let curr_position = match self.nav_model.position(curr_id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue