fix: macos Support

This commit is contained in:
xkeyC
2025-11-19 11:53:45 +08:00
parent aaaee30368
commit 0983ebe21f
13 changed files with 184 additions and 177 deletions

View File

@@ -1,9 +1,13 @@
import Cocoa
import FlutterMacOS
@NSApplicationMain
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}