fix open in app browser for mac and iOS

This commit is contained in:
Rizwan Mohamed Ibrahim 2020-05-29 15:44:32 +05:30
parent 8a03a26a10
commit eb7ac0f076
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
2 changed files with 6 additions and 1 deletions

View File

@ -273,6 +273,11 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
openArticleInBrowser(sender)
}
@objc func openFeedInAppBrowser(_ sender: Any?) {
// There is no In-App Browser for mac - so we use safari
openArticleInBrowser(sender)
}
@IBAction func openInBrowserUsingOppositeOfSettings(_ sender: Any?) {
if let link = currentLink {
Browser.open(link, inBackground: !AppDefaults.openInBrowserInBackground)

View File

@ -110,7 +110,7 @@
<key>key</key>
<string>[return]</string>
<key>action</key>
<string>openInBrowser:</string>
<string>openFeedInAppBrowser:</string>
</dict>
<dict>
<key>key</key>