macOS fix
otherwise CreateNewDocument is called twice
This commit is contained in:
@@ -287,7 +287,10 @@ bool MyApp::OnInit()
|
|||||||
|
|
||||||
if ( m_filesFromCmdLine.empty() )
|
if ( m_filesFromCmdLine.empty() )
|
||||||
{
|
{
|
||||||
|
// on macOS the dialog will be shown by MacNewFile
|
||||||
|
#ifndef __WXMAC__
|
||||||
docManager->CreateNewDocument();
|
docManager->CreateNewDocument();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else // we have files to open on command line
|
else // we have files to open on command line
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user