mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-15 01:02:48 +02:00
feat: add find keyboard shortcut
This commit is contained in:
@@ -1,19 +1,26 @@
|
||||
//
|
||||
// AppDelegate.swift
|
||||
// Application.swift
|
||||
// Memola
|
||||
//
|
||||
// Created by Dscyre Scotti on 7/12/24.
|
||||
//
|
||||
|
||||
import Combine
|
||||
import SwiftUI
|
||||
|
||||
class AppDelegate: NSObject, ObservableObject { }
|
||||
class Application: NSObject, ObservableObject {
|
||||
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
extension AppDelegate: NSApplicationDelegate {
|
||||
extension Application: NSApplicationDelegate {
|
||||
func applicationDidFinishLaunching(_ notification: Notification) {
|
||||
NSWindow.allowsAutomaticWindowTabbing = false
|
||||
UserDefaults.standard.register(defaults: ["NSQuitAlwaysKeepsWindows": false])
|
||||
}
|
||||
}
|
||||
#else
|
||||
extension Application: UIApplicationDelegate {
|
||||
func applicationDidFinishLaunching(_ application: UIApplication) { }
|
||||
}
|
||||
#endif
|
||||
@@ -10,9 +10,11 @@ import SwiftUI
|
||||
@main
|
||||
struct MemolaApp: App {
|
||||
#if os(macOS)
|
||||
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||||
@NSApplicationDelegateAdaptor(Application.self) var application
|
||||
#else
|
||||
@UIApplicationDelegateAdaptor(Application.self) var application
|
||||
#endif
|
||||
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
DashboardView()
|
||||
|
||||
Reference in New Issue
Block a user