mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Don't close video on error alert until dismissed
This commit is contained in:
@@ -338,7 +338,12 @@ extension PlayerModel {
|
||||
alert = Alert(
|
||||
title: Text("Could not load video"),
|
||||
message: Text(message),
|
||||
primaryButton: .cancel(),
|
||||
primaryButton: .cancel { [weak self] in
|
||||
guard let self else { return }
|
||||
self.advancing = false
|
||||
self.videoBeingOpened = nil
|
||||
self.currentItem = nil
|
||||
},
|
||||
secondaryButton: retryButton
|
||||
)
|
||||
} else {
|
||||
@@ -346,8 +351,5 @@ extension PlayerModel {
|
||||
}
|
||||
|
||||
navigation.presentAlert(alert)
|
||||
advancing = false
|
||||
videoBeingOpened = nil
|
||||
currentItem = nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user