mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-05-14 11:50:01 +02:00
30 lines
594 B
Swift
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
|