diff options
author | Martijn Kaijser <machine.sanctum@gmail.com> | 2013-08-19 14:08:40 -0700 |
---|---|---|
committer | Martijn Kaijser <machine.sanctum@gmail.com> | 2013-08-19 14:08:40 -0700 |
commit | 0efa87e32eee79adc8591bea12da908adeda6319 (patch) | |
tree | 0dae3ed639a3a5c3a2539f419cff58719f90d6d8 | |
parent | df859f2e7c727fbcf6df97c2e99d1fe0d942f5ac (diff) | |
parent | 85d03b40ae42baee42876668175571e42f48c9d1 (diff) |
Merge pull request #3115 from stupid-boy/GUIWindowSystemInfo
GUIWindowSystemInfo optimization
-rw-r--r-- | xbmc/windows/GUIWindowSystemInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/windows/GUIWindowSystemInfo.cpp b/xbmc/windows/GUIWindowSystemInfo.cpp index a04b42c629..462fc75c34 100644 --- a/xbmc/windows/GUIWindowSystemInfo.cpp +++ b/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) { |