mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks to reduce OnChangeAction overhead
This commit is contained in:
@ -164,14 +164,9 @@ void CMeasureDiskSpace::UpdateValue()
|
||||
** Returns the time as string.
|
||||
**
|
||||
*/
|
||||
const WCHAR* CMeasureDiskSpace::GetStringValue(AUTOSCALE autoScale, double scale, int decimals, bool percentual)
|
||||
const WCHAR* CMeasureDiskSpace::GetStringValue()
|
||||
{
|
||||
if (m_Type || m_Label)
|
||||
{
|
||||
return CheckSubstitute(m_StringValue.c_str());
|
||||
}
|
||||
|
||||
return CMeasure::GetStringValue(autoScale, scale, decimals, percentual);
|
||||
return (m_Type || m_Label) ? CheckSubstitute(m_StringValue.c_str()) : NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user