Changed OnChangeAction to ignore the first change when a skin is loaded

This commit is contained in:
Brian Ferguson 2013-01-10 23:25:59 -07:00
parent 90b80a2ca9
commit 83304154a8

View File

@ -2694,7 +2694,7 @@ void CMeterWindow::Update(bool refresh)
const WCHAR* newStringValue = (*i)->GetStringValue(AUTOSCALE_OFF, 1, -1, false);
std::wstring changeAction = (*i)->GetOnChangeAction();
if (((*i)->GetOldValue() != newValue || (*i)->GetOldStringValue() != newStringValue) && !changeAction.empty())
if (((*i)->GetOldValue() != newValue || (*i)->GetOldStringValue() != newStringValue) && !changeAction.empty() && m_UpdateCounter > 1)
{
(*i)->SetOldValue(newValue);
(*i)->SetOldStringValue(newStringValue);