From 864a4e680cc17983f8132bc02bbd2aa867d6600f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 14 Mar 2022 20:52:43 +0800 Subject: [PATCH] AboutWindow // Add wiki link. --- Source/WindowControllers/ctlAboutWindow.swift | 7 ++++++- Source/WindowNIBs/Base.lproj/frmAboutWindow.xib | 17 +++++++++++++++-- .../Resources/Base.lproj/frmAboutWindow.xib | 14 ++++++++++++-- UserPhraseEditor/ctlAboutWindow.swift | 7 ++++++- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Source/WindowControllers/ctlAboutWindow.swift b/Source/WindowControllers/ctlAboutWindow.swift index 4fd33f79..c144e201 100644 --- a/Source/WindowControllers/ctlAboutWindow.swift +++ b/Source/WindowControllers/ctlAboutWindow.swift @@ -42,5 +42,10 @@ import Cocoa } appVersionLabel.stringValue = String(format: "%@ Build %@", versionString, installingVersion) } - + + @IBAction func btnWiki(_ sender: NSButton) { + if let url = URL(string: "https://gitee.com/vchewing/vChewing-macOS/wikis") { + NSWorkspace.shared.open(url) + } + } } diff --git a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib index 1700100f..33c00d01 100644 --- a/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib +++ b/Source/WindowNIBs/Base.lproj/frmAboutWindow.xib @@ -1,8 +1,8 @@ - + - + @@ -156,12 +156,23 @@ DQ + + @@ -182,12 +193,14 @@ DQ + + diff --git a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib index e5952bda..bb45461e 100644 --- a/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib +++ b/UserPhraseEditor/Resources/Base.lproj/frmAboutWindow.xib @@ -1,8 +1,8 @@ - + - + @@ -155,8 +155,16 @@ DQ + + @@ -181,6 +189,7 @@ DQ + @@ -191,6 +200,7 @@ DQ + diff --git a/UserPhraseEditor/ctlAboutWindow.swift b/UserPhraseEditor/ctlAboutWindow.swift index 4fd33f79..c144e201 100644 --- a/UserPhraseEditor/ctlAboutWindow.swift +++ b/UserPhraseEditor/ctlAboutWindow.swift @@ -42,5 +42,10 @@ import Cocoa } appVersionLabel.stringValue = String(format: "%@ Build %@", versionString, installingVersion) } - + + @IBAction func btnWiki(_ sender: NSButton) { + if let url = URL(string: "https://gitee.com/vchewing/vChewing-macOS/wikis") { + NSWorkspace.shared.open(url) + } + } }