/// <summary> /// Loves / unloves the current track. /// </summary> /// <returns>Task.</returns> public async Task SwitchLoveState() { try { EnableControls = false; if (CurrentTrackLoved) { await _trackAPI.UnloveAsync(CurrentTrackName, CurrentArtistName); } else { await _trackAPI.LoveAsync(CurrentTrackName, CurrentArtistName); } await UpdateLovedInfo(); } catch (Exception ex) { OnStatusUpdated(string.Format("Fatal error while loving/unloving '{0}': {1}", CurrentTrackName, ex.Message)); } finally { EnableControls = true; } }