mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 15:16:15 +08:00
export settings file
Closes #950 tweak Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -39,13 +39,12 @@ class LiveRoomController extends GetxController {
|
||||
Rx<RoomInfoH5Data?> roomInfoH5 = Rx<RoomInfoH5Data?>(null);
|
||||
|
||||
Rx<int?> liveTime = Rx<int?>(null);
|
||||
static const periodMins = 5;
|
||||
Timer? liveTimeTimer;
|
||||
|
||||
void startLiveTimer() {
|
||||
if (liveTime.value != null) {
|
||||
liveTimeTimer ??= Timer.periodic(
|
||||
const Duration(minutes: periodMins),
|
||||
const Duration(minutes: 5),
|
||||
(_) => liveTime.refresh(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user