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:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user