mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
alert system
-- version 0.3.11 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@142 1a98c847-1fd6-4fd8-948a-caf3550aa51b
This commit is contained in:
13
ui.cpp
13
ui.cpp
@@ -196,7 +196,7 @@ bool ThreadSafeAskFee(int64 nFeeRequired, const string& strCaption, wxWindow* pa
|
||||
|
||||
void CalledSetStatusBar(const string& strText, int nField)
|
||||
{
|
||||
if (nField == 0 && IsLockdown())
|
||||
if (nField == 0 && GetWarnings("statusbar") != "")
|
||||
return;
|
||||
if (pframeMain && pframeMain->m_statusBar)
|
||||
pframeMain->m_statusBar->SetStatusText(strText, nField);
|
||||
@@ -1013,12 +1013,13 @@ void CMainFrame::OnPaintListCtrl(wxPaintEvent& event)
|
||||
RefreshStatusColumn();
|
||||
|
||||
// Update status bar
|
||||
static bool fPrevLockdown;
|
||||
if (IsLockdown())
|
||||
m_statusBar->SetStatusText(string(" ") + _("WARNING: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade."), 0);
|
||||
else if (fPrevLockdown)
|
||||
static string strPrevWarning;
|
||||
string strWarning = GetWarnings("statusbar");
|
||||
if (strWarning != "")
|
||||
m_statusBar->SetStatusText(string(" ") + _(strWarning), 0);
|
||||
else if (strPrevWarning != "")
|
||||
m_statusBar->SetStatusText("", 0);
|
||||
fPrevLockdown = IsLockdown();
|
||||
strPrevWarning = strWarning;
|
||||
|
||||
string strGen = "";
|
||||
if (fGenerateBitcoins)
|
||||
|
||||
Reference in New Issue
Block a user