Added OnUpdateAction to !UpdateMeter/!UpdateMeasure bangs

This commit is contained in:
Brian Ferguson 2013-01-11 00:37:10 -07:00
parent 69762e1b05
commit 731a0c611a

View File

@ -1227,6 +1227,13 @@ void CMeterWindow::UpdateMeter(const std::wstring& name, bool group)
if (all || (bContinue && CompareName((*j), meter, group))) if (all || (bContinue && CompareName((*j), meter, group)))
{ {
UpdateMeter((*j), bActiveTransition, true); UpdateMeter((*j), bActiveTransition, true);
std::wstring updateAction = (*j)->GetOnUpdateAction();
if (!updateAction.empty())
{
Rainmeter->ExecuteCommand(updateAction.c_str(), this);
}
SetResizeWindowMode(RESIZEMODE_CHECK); // Need to recalculate the window size SetResizeWindowMode(RESIZEMODE_CHECK); // Need to recalculate the window size
if (!group) if (!group)
{ {
@ -1349,6 +1356,13 @@ void CMeterWindow::UpdateMeasure(const std::wstring& name, bool group)
} }
UpdateMeasure((*i), true); UpdateMeasure((*i), true);
std::wstring updateAction = (*i)->GetOnUpdateAction();
if (!updateAction.empty())
{
Rainmeter->ExecuteCommand(updateAction.c_str(), this);
}
if (!group) return; if (!group) return;
} }
} }