mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 17:29:45 +00:00
23 lines
505 B
Swift
23 lines
505 B
Swift
//
|
|
// FileCommands.swift
|
|
// Yattee
|
|
//
|
|
// Menu bar commands for file operations.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
#if !os(tvOS)
|
|
/// File-related menu bar commands.
|
|
struct FileCommands: Commands {
|
|
var body: some Commands {
|
|
CommandGroup(replacing: .newItem) {
|
|
Button(String(localized: "menu.file.openLink")) {
|
|
NotificationCenter.default.post(name: .showOpenLinkSheet, object: nil)
|
|
}
|
|
.keyboardShortcut("o", modifiers: [.command])
|
|
}
|
|
}
|
|
}
|
|
#endif
|