Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix(macos): prevent NSApp from auto-terminating after minimizing to tray (#2098)

0chenccc98a040a6818
diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift
index e89cc74e..b7918bf8 100644
--- a/macos/Runner/AppDelegate.swift
+++ b/macos/Runner/AppDelegate.swift
@@ -6,7 +6,7 @@ import AVKit
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
- return true
+ return false
}
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {