don't warn about reloads for the first load

This commit is contained in:
Glenn Maynard
2003-03-11 19:02:09 +00:00
parent b14c6cf846
commit eaf41bad5c
+7 -3
View File
@@ -38,7 +38,8 @@ ThemeManager::ThemeManager()
m_fNextReloadTicks = 0;
m_sCurThemeName = BASE_THEME_NAME; // Use the base theme for now. It's up to PrefsManager to change this.
m_uHashForCurThemeMetrics = m_uHashForBaseThemeMetrics = 0;
CStringArray arrayThemeNames;
GetAllThemeNames( arrayThemeNames );
}
@@ -284,8 +285,11 @@ try_metric_again:
if( m_uHashForCurThemeMetrics != GetHashForFile(sCurMetricPath) ||
m_uHashForBaseThemeMetrics != GetHashForFile(sDefaultMetricPath) )
{
LOG->Warn( "Metrics file is out of date. Reloading..." );
// MessageBeep( MB_OK );
if(m_uHashForBaseThemeMetrics)
{
LOG->Warn( "Metrics file is out of date. Reloading..." );
// MessageBeep( MB_OK );
}
SwitchTheme(m_sCurThemeName); // force a reload of the metrics cache
}
}