Skip to content

Commit

Permalink
Initial implementation for binding expressions in GUIMenuButton.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajp8164 committed Jan 6, 2012
1 parent 6e94ca7 commit b18dc40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mediaportal/Core/guilib/GUIMenuButton.cs
Expand Up @@ -382,14 +382,15 @@ public override void FinalizeConstruction()
private void bindToValue(string strValue)
{
string strTemp = strValue;
strValue = GUIPropertyManager.GetProperty(strValue);
strValue = GUIPropertyManager.Parse(strValue, GUIExpressionManager.ExpressionOptions.EVALUATE_ALWAYS);
if (strValue == null || strValue == "")
{
strValue = strTemp;
}
SetSelectedItemByLabel(strValue);
}


/// <summary>
/// Preallocates the control its DirectX resources.
/// </summary>
Expand Down

0 comments on commit b18dc40

Please sign in to comment.