Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved control reset logic from GUIDiaogSelect(2).SetHeading() to OnMe…

…ssage() behind GUI_MSG_WINDOW_INIT.
  • Loading branch information...
commit eb06b2c44a99664ed08d74a5748b269c04a54166 1 parent 65a2508
@ajp8164 ajp8164 authored
View
8 mediaportal/Dialogs/Dialogs/GUIDialogSelect.cs
@@ -101,6 +101,11 @@ public override bool OnMessage(GUIMessage message)
{
m_bButtonPressed = false;
base.OnMessage(message);
+
+ Reset();
+ AllocResources();
+ InitControls();
+
_selectedLabel = -1;
ClearControl(GetID, (int)Controls.CONTROL_LIST);
@@ -246,11 +251,12 @@ public string SelectedLabelText
public void SetHeading(string strLine)
{
+ /*
Reset();
//LoadSkin();
AllocResources();
InitControls();
-
+ */
SetControlLabel(GetID, (int)Controls.CONTROL_HEADING, strLine);
}
View
8 mediaportal/Dialogs/Dialogs/GUIDialogSelect2.cs
@@ -65,6 +65,11 @@ public override bool OnMessage(GUIMessage message)
case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT:
{
base.OnMessage(message);
+
+ Reset();
+ AllocResources();
+ InitControls();
+
ClearControl(GetID, (int)Controls.CONTROL_LIST);
for (int i = 0; i < m_vecList.Count; i++)
@@ -123,11 +128,12 @@ public string SelectedLabelText
public void SetHeading(string strLine)
{
+ /*
Reset();
//LoadSkin();
AllocResources();
InitControls();
-
+ */
SetControlLabel(GetID, (int)Controls.CONTROL_HEADING, strLine);
}
Please sign in to comment.
Something went wrong with that request. Please try again.