Skip to content

Commit

Permalink
Fix bad data in Diskwhen client disconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
FTang21 committed Nov 27, 2023
1 parent b978d5c commit da062a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clientgui/ViewResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,12 @@ void CViewResources::OnListRender( wxTimerEvent& WXUNUSED(event) ) {
wxPiePart part;
part.SetLabel(_("no projects: 0 bytes used"));
part.SetValue(1);
part.SetColour(wxColour(0,0,0));
part.SetColour(isDarkMode ? wxColour(255, 255, 255) : wxColour(0,0,0));
m_pieCtrlBOINC->m_Series.Add(part);
m_pieCtrlBOINC->Refresh();
m_BOINCwasEmpty=true;
refreshBOINC=true;
project_total = 0;
}
}

Expand Down Expand Up @@ -303,7 +304,7 @@ void CViewResources::OnListRender( wxTimerEvent& WXUNUSED(event) ) {
part.SetColour(isDarkMode ? wxColour(140,140,140) : wxColour(192,192,192));
m_pieCtrlTotal->m_Series.Add(part);
m_pieCtrlTotal->Refresh();
}
}
}

wxInt32 CViewResources::FormatDiskSpace(double bytes, wxString& strBuffer) const {
Expand Down

0 comments on commit da062a3

Please sign in to comment.