2026-06-02 23:28:39 +02:00
|
|
|
import Cocoa
|
|
|
|
|
import FlutterMacOS
|
|
|
|
|
|
|
|
|
|
@main
|
|
|
|
|
class AppDelegate: FlutterAppDelegate {
|
2026-06-05 00:02:51 +02:00
|
|
|
override func applicationDidFinishLaunching(_ notification: Notification) {
|
|
|
|
|
if let iconPath = Bundle.main.path(forResource: "AppIcon", ofType: "icns") {
|
|
|
|
|
NSApp.applicationIconImage = NSImage(contentsOfFile: iconPath)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
super.applicationDidFinishLaunching(notification)
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-02 23:28:39 +02:00
|
|
|
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
}
|