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.SortByPopularShows);
sortButton.IsAscending = (TraktSettings.SortByPopularShows.Direction == SortingDirections.Ascending);
}
GUIUtils.SetProperty("#Trakt.SortBy", GUICommon.GetSortByString(TraktSettings.SortByPopularShows));
// update filter buttons
if (filterWatchedButton != null)
filterWatchedButton.Selected = TraktSettings.PopularShowsHideWatched;
if (filterWatchListedButton != null)
filterWatchListedButton.Selected = TraktSettings.PopularShowsHideWatchlisted;
if (filterCollectedButton != null)
filterCollectedButton.Selected = TraktSettings.PopularShowsHideCollected;
if (filterRatedButton != null)
filterRatedButton.Selected = TraktSettings.PopularShowsHideRated;
}