Video details toolbar and inspector settings

This commit is contained in:
Arkadiusz Fal
2022-11-13 23:36:46 +01:00
parent 7cc3cd950b
commit 041a28e7a0
8 changed files with 97 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
import Defaults
import Foundation
struct VideoDetailsTool: Identifiable {
@@ -18,7 +19,7 @@ struct VideoDetailsTool: Identifiable {
case .info:
return video != nil && !video!.isLocal
case .inspector:
return false
return video == nil || Defaults[.showInspector] == .always || video!.isLocal
case .chapters:
return video != nil && !video!.chapters.isEmpty
case .comments: