Skip to content

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

fix a build warning

ErBW_s29f74fa710e6
diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift
index 1c87e23c..be43394f 100644
--- a/macos/Runner/AppDelegate.swift
+++ b/macos/Runner/AppDelegate.swift
@@ -51,7 +51,7 @@ class AppDelegate: FlutterAppDelegate {
/* AVPlayer menu item sample end */
/* IINA menu item start */
- if let iinaPath = NSWorkspace.shared.urlForApplication(withBundleIdentifier: "com.colliderli.iina") {
+ if (NSWorkspace.shared.urlForApplication(withBundleIdentifier: "com.colliderli.iina") != nil) {
let menuItem = NSMenuItem()
menuItem.attributedTitle = NSAttributedString(string: "IINA.app", attributes: [.font: NSFont.systemFont(ofSize: 14)])
menuItem.action = #selector(openWithSelectedApp(_:))