mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed OnChangeAction to ignore the first change when a skin is loaded
This commit is contained in:
parent
90b80a2ca9
commit
83304154a8
@ -2694,7 +2694,7 @@ void CMeterWindow::Update(bool refresh)
|
|||||||
const WCHAR* newStringValue = (*i)->GetStringValue(AUTOSCALE_OFF, 1, -1, false);
|
const WCHAR* newStringValue = (*i)->GetStringValue(AUTOSCALE_OFF, 1, -1, false);
|
||||||
std::wstring changeAction = (*i)->GetOnChangeAction();
|
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)->SetOldValue(newValue);
|
||||||
(*i)->SetOldStringValue(newStringValue);
|
(*i)->SetOldStringValue(newStringValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user