mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
!WriteKeyValue: Fixed that formulas didn't work.
This commit is contained in:
parent
57025a5434
commit
eca9250655
@ -608,13 +608,10 @@ void CRainmeter::Bang_WriteKeyValue(const WCHAR* arg, CMeterWindow* meterWindow)
|
||||
bool formula = false;
|
||||
BOOL write = 0;
|
||||
|
||||
if (subStrings.size() > 4)
|
||||
{
|
||||
CMeterWindow* mw = GetMeterWindow(subStrings[4]);
|
||||
if (mw)
|
||||
if (meterWindow)
|
||||
{
|
||||
double value;
|
||||
formula = mw->GetParser().ParseFormula(strValue, &value);
|
||||
formula = meterWindow->GetParser().ParseFormula(strValue, &value);
|
||||
|
||||
// Formula read fine
|
||||
if (formula)
|
||||
@ -626,7 +623,6 @@ void CRainmeter::Bang_WriteKeyValue(const WCHAR* arg, CMeterWindow* meterWindow)
|
||||
write = WritePrivateProfileString(section, key, buffer, iniWrite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!formula)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user