mirror of
https://github.com/localsend/localsend.git
synced 2026-06-22 20:00:07 +00:00
chore(macos): enable secure restorable state (#2770)
Manual apply of https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/macos/migrations/secure_restorable_state_migration.dart
This commit is contained in:
@@ -19,6 +19,10 @@ class AppDelegate: FlutterAppDelegate {
|
||||
private var pendingStringsObservation: Defaults.Observation?
|
||||
private var isLaunchedAsLoginItem: Bool?
|
||||
|
||||
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
||||
// LocalSend handles the close event manually
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user