2022-08-17 17:23:20 +08:00
|
|
|
import Cocoa
|
|
|
|
|
import FlutterMacOS
|
|
|
|
|
|
2025-01-17 10:46:47 +08:00
|
|
|
@main
|
2022-08-17 17:23:20 +08:00
|
|
|
class AppDelegate: FlutterAppDelegate {
|
|
|
|
|
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
2025-01-17 10:46:47 +08:00
|
|
|
|
|
|
|
|
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
2022-08-17 17:23:20 +08:00
|
|
|
}
|