Skip to content

Commit

Permalink
修复切换剧集后不会读取最新的设置
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jun 23, 2024
1 parent 52ed0ff commit 3856e27
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ private class EpisodeViewModelImpl(
launchInBackground { mediaFetchSession.collectLatest { selectCached(it) } }

launchInBackground {
if (settingsRepository.mediaSelectorSettings.flow.first().autoEnableLastSelected) {
mediaFetchSession.collectLatest { autoEnableLastSelected(it) }
mediaFetchSession.collectLatest {
if (settingsRepository.mediaSelectorSettings.flow.first().autoEnableLastSelected) {
autoEnableLastSelected(it)
}
}
}
}
Expand Down

0 comments on commit 3856e27

Please sign in to comment.