Merge pull request #2121 from rizwankce/fix/in-app-browser-shortcut

fix open in app browser for mac and iOS
This commit is contained in:
Maurice Parker
2020-05-29 10:13:07 -05:00
committed by GitHub
6 changed files with 25 additions and 18 deletions

View File

@@ -274,6 +274,11 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
openArticleInBrowser(sender)
}
@objc func openInAppBrowser(_ 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)