Skip to content
This repository
Browse code

Merge pull request #3115 from stupid-boy/GUIWindowSystemInfo

GUIWindowSystemInfo optimization
  • Loading branch information...
commit 0efa87e32eee79adc8591bea12da908adeda6319 2 parents df859f2 + 85d03b4
Martijn Kaijser authored August 19, 2013

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  xbmc/windows/GUIWindowSystemInfo.cpp
8  xbmc/windows/GUIWindowSystemInfo.cpp
@@ -56,7 +56,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
56 56
   case GUI_MSG_WINDOW_INIT:
57 57
     {
58 58
       CGUIWindow::OnMessage(message);
59  
-      ResetLabels();
60 59
       SET_CONTROL_LABEL(52, "XBMC " + g_infoManager.GetLabel(SYSTEM_BUILD_VERSION) +
61 60
                             " (Compiled: " + g_infoManager.GetLabel(SYSTEM_BUILD_DATE)+")");
62 61
       CONTROL_ENABLE_ON_CONDITION(CONTROL_BT_PVR,
@@ -68,7 +67,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
68 67
     {
69 68
       CGUIWindow::OnMessage(message);
70 69
       m_diskUsage.clear();
71  
-      ResetLabels();
72 70
       return true;
73 71
     }
74 72
     break;
@@ -76,8 +74,11 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
76 74
     {
77 75
       CGUIWindow::OnMessage(message);
78 76
       int focusedControl = GetFocusedControlID();
79  
-      if (focusedControl >= CONTROL_START && focusedControl <= CONTROL_END)
  77
+      if (m_section != focusedControl && focusedControl >= CONTROL_START && focusedControl <= CONTROL_END)
  78
+      {
  79
+        ResetLabels();
80 80
         m_section = focusedControl;
  81
+      }
81 82
       return true;
82 83
     }
83 84
     break;
@@ -87,7 +88,6 @@ bool CGUIWindowSystemInfo::OnMessage(CGUIMessage& message)
87 88
 
88 89
 void CGUIWindowSystemInfo::FrameMove()
89 90
 {
90  
-  ResetLabels();
91 91
   int i = 2;
92 92
   if (m_section == CONTROL_BT_DEFAULT)
93 93
   {

0 notes on commit 0efa87e

Please sign in to comment.
Something went wrong with that request. Please try again.