From b97c295e8e9db82f56cdc67ecac0ac8a3fc0d39f Mon Sep 17 00:00:00 2001 From: Zhich Date: Sun, 17 Jul 2022 21:52:12 -0400 Subject: [PATCH 1/2] Added help --- PlayCover/View/PlayCoverApp.swift | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/PlayCover/View/PlayCoverApp.swift b/PlayCover/View/PlayCoverApp.swift index f20bae77..a132757e 100644 --- a/PlayCover/View/PlayCoverApp.swift +++ b/PlayCover/View/PlayCoverApp.swift @@ -60,6 +60,26 @@ struct PlayCoverApp: App { EmptyView() } }.handlesExternalEvents(matching: Set(arrayLiteral: "{same path of URL?}")) // create new window if doesn't exist + .commands { + CommandGroup(after: .help) { + Divider() + Button("Website") { + NSWorkspace.shared.open(URL(string: "https://playcover.io")!) + + } + Button("GitHub") { + NSWorkspace.shared.open(URL(string:"https://github.com/PlayCover/PlayCover/")!) + } + Button("Documentation") { + NSWorkspace.shared.open(URL(string:"https://github.com/PlayCover/PlayCover/wiki")!) + } + Button("Discord") { + NSWorkspace.shared.open(URL(string: "https://discord.gg/PlayCover")!) + } + + } + } + } } From 7646ae92aa92a6641772b4f0800763f3c527ffd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Moreno?= <47700212+JoseMoreville@users.noreply.github.com> Date: Sun, 17 Jul 2022 20:04:39 -0600 Subject: [PATCH 2/2] Update PlayCoverApp.swift Remove extra spaces --- PlayCover/View/PlayCoverApp.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/PlayCover/View/PlayCoverApp.swift b/PlayCover/View/PlayCoverApp.swift index a132757e..b5251133 100644 --- a/PlayCover/View/PlayCoverApp.swift +++ b/PlayCover/View/PlayCoverApp.swift @@ -76,10 +76,8 @@ struct PlayCoverApp: App { Button("Discord") { NSWorkspace.shared.open(URL(string: "https://discord.gg/PlayCover")!) } - } } - } }