updateLoopStatus method
Update loop status from player
Implementation
Future<void> updateLoopStatus() async {
try {
final player = _state.selectedPlayer.isNotEmpty
? _state.selectedPlayer
: null;
final loopStatus = await _service.getLoop(player);
if (loopStatus != null) {
_updateState(_state.copyWith(loopStatus: loopStatus.trim()));
}
} catch (e) {
debugPrint('Error updating loop status: $e');
_updateState(_state.copyWith(loopStatus: 'Unknown'));
}
}