protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
{
// wait for any background action to finish
if (GUIBackgroundTask.Instance.IsBusy) return;
switch (controlId)
{
// Facade
case (50):
if (actionType == Action.ActionType.ACTION_SELECT_ITEM)
{
PreviousUser = CurrentUser;
PlayCommentItem(true);
}
break;
// Hide Spoilers Button
case (2):
TraktSettings.HideSpoilersOnShouts = !TraktSettings.HideSpoilersOnShouts;
PublishCommentSkinProperties(Facade.SelectedListItem.TVTag as TraktCommentItem);
break;
default:
break;
}
base.OnClicked(controlId, control, actionType);
}