MGR: Force update of Task Selection List on reskin interface

svn path=/trunk/boinc/; revision=24442
This commit is contained in:
Charlie Fenton 2011-10-20 12:16:48 +00:00
parent de5104f504
commit 45ecc3e4c4
3 changed files with 11 additions and 5 deletions

View File

@ -7554,4 +7554,9 @@ Charlie 20 Oct 2011
Green_dot.png (added)
Red_dot.png (added)
Yellow_dot.png (added)
Charlie 20 Oct 2011
- MGR: Force update of Task Selection List on reskin interface.
clientgui/
sg_TaskPanel.cpp,h

View File

@ -418,7 +418,7 @@ void CSimpleTaskPanel::Update(bool delayShow) {
this->Layout();
}
UpdateTaskSelectionList();
UpdateTaskSelectionList(false);
// We now have valid result pointers, so extract our data
int count = m_TaskSelectionCtrl->GetCount();
@ -494,6 +494,7 @@ void CSimpleTaskPanel::Update(bool delayShow) {
void CSimpleTaskPanel::ReskinInterface() {
CSimplePanelBase::ReskinInterface();
m_SlideShowArea->AdvanceSlideShow(false);
UpdateTaskSelectionList(true);
}
@ -682,7 +683,7 @@ void CSimpleTaskPanel::FindSlideShowFiles(TaskSelectionData *selData) {
}
void CSimpleTaskPanel::UpdateTaskSelectionList() {
void CSimpleTaskPanel::UpdateTaskSelectionList(bool reskin) {
int i, j, count, newColor;
TaskSelectionData *selData;
RESULT* result;
@ -787,7 +788,7 @@ void CSimpleTaskPanel::UpdateTaskSelectionList() {
newColor = redDot;
}
if (newColor != selData->dotColor) {
if (reskin || (newColor != selData->dotColor)) {
switch (newColor) {
case greenDot:
m_TaskSelectionCtrl->SetItemBitmap(j, *pSkinSimple->GetWorkunitRunningImage()->GetBitmap());

View File

@ -98,7 +98,7 @@ class CSimpleTaskPanel : public CSimplePanelBase
wxString GetStatusString(RESULT* result);
wxString FormatTime(float fBuffer);
void FindSlideShowFiles(TaskSelectionData *selData);
void UpdateTaskSelectionList();
void UpdateTaskSelectionList(bool reskin);
bool isRunning(RESULT* result);
bool DownloadingResults();
bool Suspended();