This commit is contained in:
Francesco 2025-06-03 15:36:43 +02:00
parent 03a6f5c79e
commit 7a380967ea

View file

@ -1840,9 +1840,13 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
@objc func dismissTapped() {
if let presentingViewController = self.presentingViewController {
presentingViewController.dismiss(animated: true, completion: nil)
presentingViewController.dismiss(animated: true) { [weak self] in
self?.detachedWindow = nil
}
} else {
dismiss(animated: true, completion: nil)
dismiss(animated: true) { [weak self] in
self?.detachedWindow = nil
}
}
}