Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3115 from stupid-boy/GUIWindowSystemInfo

GUIWindowSystemInfo optimization
  • Loading branch information...
commit 0efa87e32eee79adc8591bea12da908adeda6319 2 parents df859f2 + 85d03b4
@MartijnKaijser MartijnKaijser authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 xbmc/windows/GUIWindowSystemInfo.cpp
View
8 xbmc/windows/GUIWindowSystemInfo.cpp
@@ -56,7 +56,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
case GUI_MSG_WINDOW_INIT:
{
CGUIWindow::OnMessage(message);
- ResetLabels();
SET_CONTROL_LABEL(52, "XBMC " + g_infoManager.GetLabel(SYSTEM_BUILD_VERSION) +
" (Compiled: " + g_infoManager.GetLabel(SYSTEM_BUILD_DATE)+")");
CONTROL_ENABLE_ON_CONDITION(CONTROL_BT_PVR,
@@ -68,7 +67,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
{
CGUIWindow::OnMessage(message);
m_diskUsage.clear();
- ResetLabels();
return true;
}
break;
@@ -76,8 +74,11 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
{
CGUIWindow::OnMessage(message);
int focusedControl = GetFocusedControlID();
- if (focusedControl >= CONTROL_START && focusedControl <= CONTROL_END)
+ if (m_section != focusedControl && focusedControl >= CONTROL_START && focusedControl <= CONTROL_END)
+ {
+ ResetLabels();
m_section = focusedControl;
+ }
return true;
}
break;
@@ -87,7 +88,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
void CGUIWindowSystemInfo::FrameMove()
{
- ResetLabels();
int i = 2;
if (m_section == CONTROL_BT_DEFAULT)
{
Please sign in to comment.
Something went wrong with that request. Please try again.