[AltServer] Fixes About panel appearing behind other windows

This commit is contained in:
Riley Testut
2023-09-13 17:19:19 -05:00
parent 8da9d93c0a
commit fd9561ba1b
2 changed files with 7 additions and 1 deletions

View File

@@ -344,6 +344,12 @@ private extension AppDelegate
} }
} }
} }
@IBAction private func showAboutPanel(_ sender: NSMenuItem)
{
NSApplication.shared.orderFrontStandardAboutPanel(sender)
NSRunningApplication.current.activate(options: .activateIgnoringOtherApps)
}
} }
extension AppDelegate: NSMenuDelegate extension AppDelegate: NSMenuDelegate

View File

@@ -81,7 +81,7 @@
<menuItem title="About AltServer" id="5kV-Vb-QxS"> <menuItem title="About AltServer" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/> <modifierMask key="keyEquivalentModifierMask"/>
<connections> <connections>
<action selector="orderFrontStandardAboutPanel:" target="Ady-hI-5gd" id="Exp-CZ-Vem"/> <action selector="showAboutPanel:" target="Voe-Tx-rLC" id="nnI-tm-dGI"/>
</connections> </connections>
</menuItem> </menuItem>
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/> <menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/>