diff --git a/app/shared/app-data/src/commonMain/kotlin/data/models/preference/MediaSelectionSeetings.kt b/app/shared/app-data/src/commonMain/kotlin/data/models/preference/MediaSelectionSeetings.kt index 8d1ee3e5fc..60e9d90b1b 100644 --- a/app/shared/app-data/src/commonMain/kotlin/data/models/preference/MediaSelectionSeetings.kt +++ b/app/shared/app-data/src/commonMain/kotlin/data/models/preference/MediaSelectionSeetings.kt @@ -1,3 +1,12 @@ +/* + * Copyright (C) 2024 OpenAni and contributors. + * + * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. + * Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link. + * + * https://github.com/open-ani/ani/blob/main/LICENSE + */ + package me.him188.ani.app.data.models.preference import androidx.compose.runtime.Immutable @@ -48,5 +57,14 @@ constructor( val Default = MediaSelectorSettings( preferKind = MediaSourceKind.WEB, // 新用户 ) + + /** + * 用于测试, 显示所有 media + */ + @Stable + @Suppress("DEPRECATION_ERROR") + val AllVisible = Default.copy( + hideSingleEpisodeForCompleted = false, + ) } } \ No newline at end of file