PCM: Make the progress dialog non-modal on other platforms
This commit is contained in:
parent
2312cf34c4
commit
bd977fffa8
|
@ -406,7 +406,11 @@ void PCM_TASK_MANAGER::InstallFromFile( wxWindow* aParent, const wxString& aFile
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter = std::make_unique<DIALOG_PCM_PROGRESS>( aParent, false );
|
m_reporter = std::make_unique<DIALOG_PCM_PROGRESS>( aParent, false );
|
||||||
|
#ifdef __WXMAC__
|
||||||
m_reporter->ShowWindowModal();
|
m_reporter->ShowWindowModal();
|
||||||
|
#else
|
||||||
|
m_reporter->Show();
|
||||||
|
#endif
|
||||||
|
|
||||||
if( isUpdate )
|
if( isUpdate )
|
||||||
{
|
{
|
||||||
|
@ -571,7 +575,11 @@ void PCM_TASK_MANAGER::RunQueue( wxWindow* aParent )
|
||||||
m_reporter = std::make_unique<DIALOG_PCM_PROGRESS>( aParent );
|
m_reporter = std::make_unique<DIALOG_PCM_PROGRESS>( aParent );
|
||||||
|
|
||||||
m_reporter->SetNumPhases( m_download_queue.size() + m_install_queue.size() );
|
m_reporter->SetNumPhases( m_download_queue.size() + m_install_queue.size() );
|
||||||
|
#ifdef __WXMAC__
|
||||||
m_reporter->ShowWindowModal();
|
m_reporter->ShowWindowModal();
|
||||||
|
#else
|
||||||
|
m_reporter->Show();
|
||||||
|
#endif
|
||||||
|
|
||||||
wxSafeYield();
|
wxSafeYield();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue