Mercurial > hg > bitcoin
changeset 124:097ce23097aa draft
command line switch -noui
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> |
---|---|
date | Thu, 17 Dec 2009 23:16:27 +0000 |
parents | d059086f641f |
children | f09c81d38323 |
files | ui.cpp |
diffstat | 1 files changed, 16 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/ui.cpp +++ b/ui.cpp @@ -190,6 +190,9 @@ int ThreadSafeMessageBox(const string& message, const string& caption, int style, wxWindow* parent, int x, int y) { + if (mapArgs.count("-noui")) + return wxOK; + #ifdef __WXMSW__ return wxMessageBox(message, caption, style, parent, x, y); #else @@ -3716,16 +3719,19 @@ // // Create the main frame window // - pframeMain = new CMainFrame(NULL); - if (mapArgs.count("-min")) - pframeMain->Iconize(true); - pframeMain->Show(true); // have to show first to get taskbar button to hide - if (fMinimizeToTray && pframeMain->IsIconized()) - fClosedToTray = true; - pframeMain->Show(!fClosedToTray); - ptaskbaricon->Show(fMinimizeToTray || fClosedToTray); - - CreateThread(ThreadDelayedRepaint, NULL); + if (!mapArgs.count("-noui")) + { + pframeMain = new CMainFrame(NULL); + if (mapArgs.count("-min")) + pframeMain->Iconize(true); + pframeMain->Show(true); // have to show first to get taskbar button to hide + if (fMinimizeToTray && pframeMain->IsIconized()) + fClosedToTray = true; + pframeMain->Show(!fClosedToTray); + ptaskbaricon->Show(fMinimizeToTray || fClosedToTray); + + CreateThread(ThreadDelayedRepaint, NULL); + } if (!CheckDiskSpace()) return false; @@ -3928,13 +3934,3 @@ bool GetStartOnSystemStartup() { return false; } void SetStartOnSystemStartup(bool fAutoStart) { } #endif - - - - - - - - - -