mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=6245
This commit is contained in:
parent
1575fe938e
commit
523a3dfe55
|
@ -1238,6 +1238,7 @@ void CMainFrame::OnFrameRender(wxTimerEvent &event) {
|
||||||
|
|
||||||
static bool bAlreadyRunningLoop = false;
|
static bool bAlreadyRunningLoop = false;
|
||||||
static bool bAlreadyRunOnce = false;
|
static bool bAlreadyRunOnce = false;
|
||||||
|
static wxString strCachedStatusText = wxEmptyString;
|
||||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||||
|
|
||||||
if (!bAlreadyRunningLoop) {
|
if (!bAlreadyRunningLoop) {
|
||||||
|
@ -1345,7 +1346,12 @@ void CMainFrame::OnFrameRender(wxTimerEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SetTitle(strTitle);
|
SetTitle(strTitle);
|
||||||
|
// The Mac takes a huge performance hit changing the text of a floating
|
||||||
|
// window, so don't change the text unless we really have too.
|
||||||
|
if (strStatusText != strCachedStatusText) {
|
||||||
|
strCachedStatusText = strStatusText;
|
||||||
m_pStatusbar->m_ptxtConnected->SetLabel(strStatusText);
|
m_pStatusbar->m_ptxtConnected->SetLabel(strStatusText);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
m_pStatusbar->m_pbmpConnected->Hide();
|
m_pStatusbar->m_pbmpConnected->Hide();
|
||||||
m_pStatusbar->m_ptxtConnected->Hide();
|
m_pStatusbar->m_ptxtConnected->Hide();
|
||||||
|
|
Loading…
Reference in New Issue