mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Script: Fixed that AutoScale/Scale/Percentual/NumOfDecimals were not applied for MeasureName=ScriptMeasure
- NowPlayingPlugin: OpenPlayer bang with foobar2000 now opens foobar2000 maximized regardless of previous state
This commit is contained in:
@@ -98,11 +98,8 @@ bool CMeasureScript::Update()
|
||||
if (!(m_HasUpdateFunction && m_LuaScript->RunFunctionWithReturn(g_UpdateFunctionName, m_Value, m_StringValue)) &&
|
||||
!(m_HasGetStringFunction && m_LuaScript->RunFunctionWithReturn(g_GetStringFunctionName, m_Value, m_StringValue)))
|
||||
{
|
||||
if (!m_StringValue.empty())
|
||||
{
|
||||
m_Value = 0;
|
||||
m_StringValue.clear();
|
||||
}
|
||||
m_Value = 0;
|
||||
m_StringValue.clear();
|
||||
}
|
||||
|
||||
return PostUpdate();
|
||||
@@ -116,7 +113,12 @@ bool CMeasureScript::Update()
|
||||
*/
|
||||
const WCHAR* CMeasureScript::GetStringValue(AUTOSCALE autoScale, double scale, int decimals, bool percentual)
|
||||
{
|
||||
return CheckSubstitute(m_StringValue.c_str());
|
||||
if (!m_StringValue.empty())
|
||||
{
|
||||
return CheckSubstitute(m_StringValue.c_str());
|
||||
}
|
||||
|
||||
return CMeasure::GetStringValue(autoScale, scale, decimals, percentual);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user