Implement "don't show".
This commit is contained in:
@@ -170,13 +170,16 @@ void CSMPackageInstallDlg::OnOK()
|
|||||||
|
|
||||||
// Show comment (if any)
|
// Show comment (if any)
|
||||||
CString sComment = m_zip.GetGlobalComment();
|
CString sComment = m_zip.GetGlobalComment();
|
||||||
if( sComment != "" )
|
bool DontShowComment;
|
||||||
|
if( sComment != "" && (!GetPref("DontShowComment", DontShowComment) || !DontShowComment) )
|
||||||
{
|
{
|
||||||
ShowComment commentDlg;
|
ShowComment commentDlg;
|
||||||
commentDlg.m_sComment = sComment;
|
commentDlg.m_sComment = sComment;
|
||||||
int nResponse = commentDlg.DoModal();
|
int nResponse = commentDlg.DoModal();
|
||||||
if( nResponse != IDOK )
|
if( nResponse != IDOK )
|
||||||
return; // cancelled
|
return; // cancelled
|
||||||
|
if( commentDlg.m_bDontShow )
|
||||||
|
SetPref( "DontShowComment", true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user