Skip to content

Commit

Permalink
Fix game pause alert
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson committed Sep 28, 2023
1 parent c6f49d7 commit dab7822
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ extension PVEmulatorViewController {

let actionSheet = UIAlertController(title: "Game Options", message: nil, preferredStyle: .actionSheet)

// only popup if sumoned from menuButton
if let menuButton = menuButton {
actionSheet.popoverPresentationController?.sourceView = menuButton
actionSheet.popoverPresentationController?.sourceRect = menuButton.bounds
} else {
return
}
#if targetEnvironment(macCatalyst) || os(macOS)
if let menuButton = menuButton, sender === menuButton {
actionSheet.popoverPresentationController?.sourceView = menuButton
Expand Down

0 comments on commit dab7822

Please sign in to comment.