From 2c91f477e6bf3006f1ac5f9bba61ae7c2f945e82 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Thu, 4 Jan 2024 01:57:34 +0100 Subject: [PATCH] Fix game pause alert (#2239) Co-authored-by: Joe Mattiello --- .../PVEmulatorVC/PVEmulatorViewController+PauseMenu.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Provenance/Emulator/PVEmulatorVC/PVEmulatorViewController+PauseMenu.swift b/Provenance/Emulator/PVEmulatorVC/PVEmulatorViewController+PauseMenu.swift index e4a5a47212..287f342271 100644 --- a/Provenance/Emulator/PVEmulatorVC/PVEmulatorViewController+PauseMenu.swift +++ b/Provenance/Emulator/PVEmulatorVC/PVEmulatorViewController+PauseMenu.swift @@ -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