*** empty log message ***

svn path=/trunk/boinc/; revision=6245
This commit is contained in:
Rom Walton 2005-05-25 03:36:16 +00:00
parent 1575fe938e
commit 523a3dfe55
1 changed files with 10 additions and 4 deletions

View File

@ -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();