opt: watchLater visible logic

This commit is contained in:
guozhigq
2024-12-02 21:01:33 +08:00
parent 97d20b1145
commit 1395f7ebf3
2 changed files with 5 additions and 8 deletions

View File

@ -624,10 +624,8 @@ class VideoDetailController extends GetxController
}
void toggeleWatchLaterVisible(bool val) {
if (sourceType.value == 'watchLater' ||
sourceType.value == 'fav' ||
sourceType.value == 'up_archive') {
isWatchLaterVisible.value = !isWatchLaterVisible.value;
if (['watchLater', 'fav', 'up_archive'].contains(sourceType.value)) {
isWatchLaterVisible.value = val;
}
}