mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Update watch time on close item
This commit is contained in:
@@ -624,13 +624,14 @@ final class PlayerModel: ObservableObject {
|
||||
closing = true
|
||||
controls.presentingControls = false
|
||||
|
||||
self.prepareCurrentItemForHistory(finished: finished)
|
||||
|
||||
self.hide()
|
||||
|
||||
Delay.by(0.8) { [weak self] in
|
||||
guard let self else { return }
|
||||
self.closePiP()
|
||||
|
||||
self.prepareCurrentItemForHistory(finished: finished)
|
||||
withAnimation {
|
||||
self.currentItem = nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user