mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-09 22:32:40 +02:00
feat: add new memo shortcut
This commit is contained in:
@@ -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
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user