mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add "Visit Support Forum" item to Help menu
This commit is contained in:
parent
b987ab703f
commit
5dc5108354
@ -39,10 +39,17 @@ struct WriteFreely_MultiPlatformApp: App {
|
||||
.disabled(!model.account.isLoggedIn)
|
||||
.keyboardShortcut("r", modifiers: [.command])
|
||||
}
|
||||
#if os(macOS)
|
||||
SidebarCommands()
|
||||
CommandGroup(after: .help) {
|
||||
Button("Visit Support Forum") {
|
||||
#if os(macOS)
|
||||
NSWorkspace().open(model.helpURL)
|
||||
#else
|
||||
UIApplication.shared.open(model.helpURL)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
Settings {
|
||||
|
Loading…
Reference in New Issue
Block a user