Browse Source

command line switch -noui

git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@52 1a98c847-1fd6-4fd8-948a-caf3550aa51b
miguelfreitas
s_nakamoto 15 years ago
parent
commit
9a36562347
  1. 16
      ui.cpp

16
ui.cpp

@ -190,6 +190,9 @@ void CalledMessageBox(const string& message, const string& caption, int style, w
int ThreadSafeMessageBox(const string& message, const string& caption, int style, wxWindow* parent, int x, int y) int ThreadSafeMessageBox(const string& message, const string& caption, int style, wxWindow* parent, int x, int y)
{ {
if (mapArgs.count("-noui"))
return wxOK;
#ifdef __WXMSW__ #ifdef __WXMSW__
return wxMessageBox(message, caption, style, parent, x, y); return wxMessageBox(message, caption, style, parent, x, y);
#else #else
@ -3716,6 +3719,8 @@ bool CMyApp::OnInit2()
// //
// Create the main frame window // Create the main frame window
// //
if (!mapArgs.count("-noui"))
{
pframeMain = new CMainFrame(NULL); pframeMain = new CMainFrame(NULL);
if (mapArgs.count("-min")) if (mapArgs.count("-min"))
pframeMain->Iconize(true); pframeMain->Iconize(true);
@ -3726,6 +3731,7 @@ bool CMyApp::OnInit2()
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray); ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
CreateThread(ThreadDelayedRepaint, NULL); CreateThread(ThreadDelayedRepaint, NULL);
}
if (!CheckDiskSpace()) if (!CheckDiskSpace())
return false; return false;
@ -3928,13 +3934,3 @@ void SetStartOnSystemStartup(bool fAutoStart)
bool GetStartOnSystemStartup() { return false; } bool GetStartOnSystemStartup() { return false; }
void SetStartOnSystemStartup(bool fAutoStart) { } void SetStartOnSystemStartup(bool fAutoStart) { }
#endif #endif

Loading…
Cancel
Save