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*) void LLPanelNetwork::onClickClearCache(void*)
{ {
// flag client cache for clearing next time the client runs // flag client cache for clearing next time the client runs
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE); if (!gSavedSettings.getBOOL("PurgeCacheOnNextStartup"))
LLNotificationsUtil::add("CacheWillClear"); {
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE);
LLNotificationsUtil::add("CacheWillClear");
}
} }
// static // static