mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-05-24 06:35:13 +00:00
Adding a check so chapter sleep timer is set after resume only when a chapter sleep timer was set before
This commit is contained in:
parent
46f558d6e0
commit
2eb399b8a7
1 changed files with 3 additions and 2 deletions
|
|
@ -116,8 +116,9 @@ extension AudioPlayer {
|
|||
// MARK: - Internal helpers
|
||||
|
||||
internal func handleTrackChangeForChapterSleepTimer() {
|
||||
// If no sleep timer is set, this does nothing
|
||||
self.setChapterSleepTimer(stopAt: self.sleepTimeChapterStopAt)
|
||||
if self.isChapterSleepTimerSet() {
|
||||
self.setChapterSleepTimer(stopAt: self.sleepTimeChapterStopAt)
|
||||
}
|
||||
}
|
||||
|
||||
private func decrementSleepTimerIfRunning() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue