mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added OnUpdateAction to !UpdateMeter/!UpdateMeasure bangs
This commit is contained in:
parent
69762e1b05
commit
731a0c611a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user