feat: add new memo shortcut

This commit is contained in:
dscyrescotti
2024-07-12 22:02:28 +07:00
parent 007d4ab755
commit c2aa087a55
18 changed files with 321 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
//
// AppDelegate.swift
// Memola
//
// Created by Dscyre Scotti on 7/12/24.
//
import SwiftUI
class AppDelegate: NSObject, ObservableObject { }
#if os(macOS)
extension AppDelegate: NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
NSWindow.allowsAutomaticWindowTabbing = false
UserDefaults.standard.register(defaults: ["NSQuitAlwaysKeepsWindows": false])
}
}
#endif
+10
View File
@@ -9,6 +9,10 @@ import SwiftUI
@main
struct MemolaApp: App {
#if os(macOS)
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
#endif
var body: some Scene {
WindowGroup {
DashboardView()
@@ -31,5 +35,11 @@ struct MemolaApp: App {
.defaultSize(width: 1200, height: 800)
.windowToolbarStyle(.unifiedCompact)
#endif
.commands {
AppCommands()
FileCommands()
EditCommands()
ViewCommands()
}
}
}