separate live dm

Closes #1217

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-18 16:25:50 +08:00
parent a6182b20c0
commit 64e893e36f
6 changed files with 32 additions and 18 deletions

View File

@@ -70,10 +70,10 @@ class BottomControl extends StatelessWidget {
const SizedBox(width: 3),
Obx(
() {
final enableShowDanmaku =
plPlayerController.enableShowDanmaku.value;
final enableShowLiveDanmaku =
plPlayerController.enableShowLiveDanmaku.value;
return ComBtn(
icon: enableShowDanmaku
icon: enableShowLiveDanmaku
? const Icon(
size: 18,
Icons.subtitles_outlined,
@@ -85,11 +85,11 @@ class BottomControl extends StatelessWidget {
color: Colors.white,
),
onTap: () {
final newVal = !enableShowDanmaku;
plPlayerController.enableShowDanmaku.value = newVal;
final newVal = !enableShowLiveDanmaku;
plPlayerController.enableShowLiveDanmaku.value = newVal;
if (!plPlayerController.tempPlayerConf) {
GStorage.setting.put(
SettingBoxKey.enableShowDanmaku,
SettingBoxKey.enableShowLiveDanmaku,
newVal,
);
}