Implement "don't show".

This commit is contained in:
Glenn Maynard
2003-07-22 03:21:08 +00:00
parent a91fed3848
commit a5720a96a4
@@ -170,13 +170,16 @@ void CSMPackageInstallDlg::OnOK()
// Show comment (if any)
CString sComment = m_zip.GetGlobalComment();
if( sComment != "" )
bool DontShowComment;
if( sComment != "" && (!GetPref("DontShowComment", DontShowComment) || !DontShowComment) )
{
ShowComment commentDlg;
commentDlg.m_sComment = sComment;
int nResponse = commentDlg.DoModal();
if( nResponse != IDOK )
return; // cancelled
if( commentDlg.m_bDontShow )
SetPref( "DontShowComment", true );
}