mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change for r1166.
This commit is contained in:
@ -1899,6 +1899,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
|
||||
|
||||
if (meterWindow)
|
||||
{
|
||||
meterWindow->GetParser().ReplaceMeasures(sound);
|
||||
meterWindow->MakePathAbsolute(sound);
|
||||
}
|
||||
|
||||
@ -1914,7 +1915,16 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
|
||||
}
|
||||
|
||||
// Run command
|
||||
RunCommand(NULL, command, SW_SHOWNORMAL);
|
||||
if (meterWindow)
|
||||
{
|
||||
std::wstring tmpSz = command;
|
||||
meterWindow->GetParser().ReplaceMeasures(tmpSz);
|
||||
RunCommand(NULL, tmpSz.c_str(), SW_SHOWNORMAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
RunCommand(NULL, command, SW_SHOWNORMAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user