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,9 +39,16 @@ struct WriteFreely_MultiPlatformApp: App {
|
|||||||
.disabled(!model.account.isLoggedIn)
|
.disabled(!model.account.isLoggedIn)
|
||||||
.keyboardShortcut("r", modifiers: [.command])
|
.keyboardShortcut("r", modifiers: [.command])
|
||||||
}
|
}
|
||||||
#if os(macOS)
|
|
||||||
SidebarCommands()
|
SidebarCommands()
|
||||||
#endif
|
CommandGroup(after: .help) {
|
||||||
|
Button("Visit Support Forum") {
|
||||||
|
#if os(macOS)
|
||||||
|
NSWorkspace().open(model.helpURL)
|
||||||
|
#else
|
||||||
|
UIApplication.shared.open(model.helpURL)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user