mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix closing video on error
This commit is contained in:
parent
a054d343a9
commit
947f216fac
@ -626,6 +626,7 @@ final class PlayerModel: ObservableObject {
|
||||
func closeCurrentItem(finished: Bool = false) {
|
||||
pause()
|
||||
videoBeingOpened = nil
|
||||
advancing = false
|
||||
forceBackendOnPlay = nil
|
||||
|
||||
closing = true
|
||||
|
@ -364,10 +364,7 @@ extension PlayerModel {
|
||||
message: Text(message),
|
||||
primaryButton: .cancel { [weak self] in
|
||||
guard let self else { return }
|
||||
self.advancing = false
|
||||
self.videoBeingOpened = nil
|
||||
self.currentItem = nil
|
||||
self.hide()
|
||||
self.closeCurrentItem()
|
||||
},
|
||||
secondaryButton: retryButton
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user