From 731a0c611a98765b11718f3f65a2e563b41e591a Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Fri, 11 Jan 2013 00:37:10 -0700 Subject: [PATCH] Added OnUpdateAction to !UpdateMeter/!UpdateMeasure bangs --- Library/MeterWindow.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index e46fe08d..a362160a 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -1227,6 +1227,13 @@ void CMeterWindow::UpdateMeter(const std::wstring& name, bool group) if (all || (bContinue && CompareName((*j), meter, group))) { 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 if (!group) { @@ -1349,6 +1356,13 @@ void CMeterWindow::UpdateMeasure(const std::wstring& name, bool group) } UpdateMeasure((*i), true); + + std::wstring updateAction = (*i)->GetOnUpdateAction(); + if (!updateAction.empty()) + { + Rainmeter->ExecuteCommand(updateAction.c_str(), this); + } + if (!group) return; } }