0df8013d3e
- 移除内置 AVPlayer 播放器,视频文件统一使用外部播放器 - 播放器选择器优化为 Grid 布局,显示真实应用图标 - 右键菜单合并为"播放"菜单,直接列出所有播放器 - 详情页剧集列表增加右键菜单 - 媒体库所有上下文菜单统一播放入口 - 修复启动时自动清理已删除文件的秒传记录 - 添加 prepareAndPerformFastTransfer 静态方法
21 lines
532 B
Swift
21 lines
532 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct guangya_macApp: App {
|
|
init() {
|
|
#if DEBUG
|
|
// The bundle is copied into the Debug app by the "Copy Injection Bundle" build phase.
|
|
let bundlePath = Bundle.main.path(forResource: "macOSInjection", ofType: "bundle")
|
|
Bundle(path: bundlePath ?? "")?.load()
|
|
#endif
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
.windowToolbarStyle(.unified(showsTitle: false))
|
|
.handlesExternalEvents(matching: [])
|
|
}
|
|
}
|