PCM: progress dialog stay should on top, disable other windows
This commit is contained in:
parent
ec9e7eed90
commit
7ec2989d30
|
@ -31,6 +31,7 @@ DIALOG_PCM_PROGRESS::DIALOG_PCM_PROGRESS( wxWindow* parent, bool aShowDownloadSe
|
||||||
m_downloadTotal( 0 ),
|
m_downloadTotal( 0 ),
|
||||||
m_currentProgress( 0 ),
|
m_currentProgress( 0 ),
|
||||||
m_currentProgressTotal( 0 ),
|
m_currentProgressTotal( 0 ),
|
||||||
|
m_disabler( this ),
|
||||||
m_finished( false )
|
m_finished( false )
|
||||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||||
,
|
,
|
||||||
|
|
|
@ -82,6 +82,7 @@ private:
|
||||||
#if wxCHECK_VERSION( 3, 1, 0 )
|
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||||
wxAppProgressIndicator m_appProgressIndicator;
|
wxAppProgressIndicator m_appProgressIndicator;
|
||||||
#endif
|
#endif
|
||||||
|
wxWindowDisabler m_disabler;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DIALOG_PCM_PROGRESS_H_
|
#endif // DIALOG_PCM_PROGRESS_H_
|
||||||
|
|
|
@ -429,6 +429,8 @@ void PCM_TASK_MANAGER::InstallFromFile( wxWindow* aParent, const wxString& aFile
|
||||||
m_reporter->Destroy();
|
m_reporter->Destroy();
|
||||||
m_reporter.reset();
|
m_reporter.reset();
|
||||||
|
|
||||||
|
aParent->Raise();
|
||||||
|
|
||||||
m_color_themes_changed.store( package.type == PCM_PACKAGE_TYPE::PT_COLORTHEME );
|
m_color_themes_changed.store( package.type == PCM_PACKAGE_TYPE::PT_COLORTHEME );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -643,6 +645,8 @@ void PCM_TASK_MANAGER::RunQueue( wxWindow* aParent )
|
||||||
m_reporter->Destroy();
|
m_reporter->Destroy();
|
||||||
m_reporter.reset();
|
m_reporter.reset();
|
||||||
|
|
||||||
|
aParent->Raise();
|
||||||
|
|
||||||
download_thread.join();
|
download_thread.join();
|
||||||
install_thread.join();
|
install_thread.join();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue