command line switch -noui
This commit is contained in:
parent
9228c53cf5
commit
95d839f15c
1 changed files with 15 additions and 19 deletions
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)
|
||||
{
|
||||
if (mapArgs.count("-noui"))
|
||||
return wxOK;
|
||||
|
||||
#ifdef __WXMSW__
|
||||
return wxMessageBox(message, caption, style, parent, x, y);
|
||||
#else
|
||||
|
@ -3716,6 +3719,8 @@ bool CMyApp::OnInit2()
|
|||
//
|
||||
// Create the main frame window
|
||||
//
|
||||
if (!mapArgs.count("-noui"))
|
||||
{
|
||||
pframeMain = new CMainFrame(NULL);
|
||||
if (mapArgs.count("-min"))
|
||||
pframeMain->Iconize(true);
|
||||
|
@ -3726,6 +3731,7 @@ bool CMyApp::OnInit2()
|
|||
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
|
||||
|
||||
CreateThread(ThreadDelayedRepaint, NULL);
|
||||
}
|
||||
|
||||
if (!CheckDiskSpace())
|
||||
return false;
|
||||
|
@ -3928,13 +3934,3 @@ void SetStartOnSystemStartup(bool fAutoStart)
|
|||
bool GetStartOnSystemStartup() { return false; }
|
||||
void SetStartOnSystemStartup(bool fAutoStart) { }
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue