From bcb5b4f959e5b35ef988d2c790d133eee0018036 Mon Sep 17 00:00:00 2001 From: Kim Dong-Hyun Date: Sat, 14 Sep 2024 02:44:07 +0900 Subject: [PATCH] Update macOS swift file --- flutter_package/example/.gitignore | 2 ++ flutter_package/example/macos/Runner/AppDelegate.swift | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/flutter_package/example/.gitignore b/flutter_package/example/.gitignore index 3faab82f9..0a9c49c01 100644 --- a/flutter_package/example/.gitignore +++ b/flutter_package/example/.gitignore @@ -5,9 +5,11 @@ *.swp .DS_Store .atom/ +.build/ .buildlog/ .history .svn/ +.swiftpm/ migrate_working_dir/ # IntelliJ related diff --git a/flutter_package/example/macos/Runner/AppDelegate.swift b/flutter_package/example/macos/Runner/AppDelegate.swift index 8e02df288..b3c176141 100644 --- a/flutter_package/example/macos/Runner/AppDelegate.swift +++ b/flutter_package/example/macos/Runner/AppDelegate.swift @@ -6,4 +6,8 @@ class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } }