Skip to content

Commit

Permalink
Fix game pause alert (#2239)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Mattiello <[email protected]>
  • Loading branch information
dnicolson and JoeMatt authored Jan 4, 2024
1 parent e7ae831 commit 2c91f47
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ extension PVEmulatorViewController {

let actionSheet = UIAlertController(title: "Game Options", message: nil, preferredStyle: .actionSheet)
actionSheet.popoverPresentationController?.barButtonItem = self.navigationItem.leftBarButtonItem
// only popup if sumoned from menuButton
if let menuButton = menuButton {
actionSheet.popoverPresentationController?.sourceView = menuButton
actionSheet.popoverPresentationController?.sourceRect = menuButton.bounds
}

#if targetEnvironment(macCatalyst) || os(macOS)
if let menuButton = menuButton, sender === menuButton {
actionSheet.popoverPresentationController?.sourceView = menuButton
Expand Down

0 comments on commit 2c91f47

Please sign in to comment.