From a5720a96a409c389758db63c47758d1609446ddd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 22 Jul 2003 03:21:08 +0000 Subject: [PATCH] Implement "don't show". --- stepmania/src/smpackage/SMPackageInstallDlg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/smpackage/SMPackageInstallDlg.cpp b/stepmania/src/smpackage/SMPackageInstallDlg.cpp index 3dae424889..362e8bc568 100644 --- a/stepmania/src/smpackage/SMPackageInstallDlg.cpp +++ b/stepmania/src/smpackage/SMPackageInstallDlg.cpp @@ -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 ); }