mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-31 12:56:08 +00:00

* feat: integrate auto_updater in macOS * chore: update translations * chore: bump auto_updater version * feat: exclude linux platform in auto update task * chore: disable auto updater * fix: integration tests * fix: integration tests
24 lines
561 B
Swift
24 lines
561 B
Swift
import Cocoa
|
|
import FlutterMacOS
|
|
|
|
@main
|
|
class AppDelegate: FlutterAppDelegate {
|
|
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
return false
|
|
}
|
|
|
|
override func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
|
|
if !flag {
|
|
for window in sender.windows {
|
|
window.makeKeyAndOrderFront(self)
|
|
}
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
|
return true
|
|
}
|
|
}
|