From 347dfcd88dd46e1859d95466d89939e13f4fbddf Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 7 Mar 2022 10:01:58 -0500 Subject: [PATCH] Update ParentPanelController.swift --- Clocker/Panel/ParentPanelController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 786bbac..8076ab2 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -987,6 +987,12 @@ class ParentPanelController: NSWindowController { NSWorkspace.shared.open(sourceURL) } + + @objc func openFAQs() { + guard let sourceURL = URL(string: AboutUsConstants.FAQsLink) else { return } + + NSWorkspace.shared.open(sourceURL) + } @IBAction func showMoreOptions(_ sender: NSButton) { let menuItem = NSMenu(title: "More Options") @@ -1010,6 +1016,7 @@ class ParentPanelController: NSWindowController { clockerVersionInfo.isEnabled = false menuItem.addItem(openPreferences) menuItem.addItem(rateClocker) + menuItem.addItem(withTitle: "FAQs", action: #selector(openFAQs), keyEquivalent: "") menuItem.addItem(sendFeedback) menuItem.addItem(localizeClocker) menuItem.addItem(NSMenuItem.separator())