Skip to content

Commit

Permalink
Merge pull request PlayCover#56 from ZhichGaming/develop
Browse files Browse the repository at this point in the history
Feat:  ✨ Added help menu links
  • Loading branch information
JoseMoreville committed Jul 18, 2022
2 parents 9c5fc3c + 7646ae9 commit 4171c2a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PlayCover/View/PlayCoverApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ 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")!)
}
}
}
}

}

0 comments on commit 4171c2a

Please sign in to comment.