private void UpdateButtonState()
{
// update layout button label
GUIControl.SetControlLabel(GetID, layoutButton.GetID, GUICommon.GetLayoutTranslation(CurrentLayout));
// update sortby button label
if (sortButton != null)
{
sortButton.Label = GUICommon.GetSortByString(TraktSettings.SortByTrendingShows);
sortButton.IsAscending = (TraktSettings.SortByTrendingShows.Direction == SortingDirections.Ascending);
}
GUIUtils.SetProperty("#Trakt.SortBy", GUICommon.GetSortByString(TraktSettings.SortByTrendingShows));
// update filter buttons
if (filterWatchedButton != null)
filterWatchedButton.Selected = TraktSettings.TrendingShowsHideWatched;
if (filterWatchListedButton != null)
filterWatchListedButton.Selected = TraktSettings.TrendingShowsHideWatchlisted;
if (filterCollectedButton != null)
filterCollectedButton.Selected = TraktSettings.TrendingShowsHideCollected;
if (filterRatedButton != null)
filterRatedButton.Selected = TraktSettings.TrendingShowsHideRated;
}