Files
Memola/Memola/Commands/AppCommands.swift
2024-07-18 00:54:56 +07:00

30 lines
594 B
Swift

//
// AppCommands.swift
// Memola
//
// Created by Dscyre Scotti on 7/12/24.
//
#if os(macOS)
import SwiftUI
struct AppCommands: Commands {
@ObservedObject private var application: Application
init(application: Application) {
self.application = application
}
var body: some Commands {
CommandGroup(replacing: .appSettings) {
Button {
application.openWindow(for: .settings)
} label: {
Text("Services...")
}
.keyboardShortcut(",", modifiers: .command)
}
}
}
#endif