aboutsummaryrefslogtreecommitdiff
path: root/frontend/macos/Runner/AppDelegate.swift
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/macos/Runner/AppDelegate.swift')
-rw-r--r--frontend/macos/Runner/AppDelegate.swift9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/macos/Runner/AppDelegate.swift b/frontend/macos/Runner/AppDelegate.swift
new file mode 100644
index 000000000..d53ef6437
--- /dev/null
+++ b/frontend/macos/Runner/AppDelegate.swift
@@ -0,0 +1,9 @@
+import Cocoa
+import FlutterMacOS
+
+@NSApplicationMain
+class AppDelegate: FlutterAppDelegate {
+ override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
+ return true
+ }
+}