opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'package:PiliPlus/http/constants.dart';
@@ -235,14 +236,14 @@ class LiveRoomController extends GetxController {
}
// 修改画质
Future<void> changeQn(int qn) async {
FutureOr<void> changeQn(int qn) {
if (currentQn == qn) {
return;
return null;
}
currentQn = qn;
currentQnDesc.value = LiveQuality.values
.firstWhere((element) => element.code == currentQn)
.description;
await queryLiveInfo();
return queryLiveInfo();
}
}