Fix actions actionable

This commit is contained in:
Arkadiusz Fal 2023-04-24 12:09:22 +02:00
parent 77fde219e0
commit 8271feb77a

View File

@ -96,8 +96,16 @@ struct VideoActions: View {
return !(video?.isLocal ?? true) && accounts.signedIn && accounts.app.supportsSubscriptions
case .settings:
return video != nil
case .fullScreen:
return video != nil
case .pip:
return video != nil
case .advanceToNextItem:
return player.isAdvanceToNextItemAvailable
case .restart:
return video != nil
case .musicMode:
return video != nil
default:
return true
}