Fix Deltek's issue: Altering the disk cache size is spammy

This commit is contained in:
Lirusaito
2016-04-15 02:49:55 -04:00
parent b05f6ee9da
commit de95e07907

View File

@@ -161,8 +161,11 @@ void LLPanelNetwork::cancel()
void LLPanelNetwork::onClickClearCache(void*)
{
// flag client cache for clearing next time the client runs
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE);
LLNotificationsUtil::add("CacheWillClear");
if (!gSavedSettings.getBOOL("PurgeCacheOnNextStartup"))
{
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE);
LLNotificationsUtil::add("CacheWillClear");
}
}
// static