Fixed auto-updater setting toggles between startups bug

Fixes #2597, closes #2599
This commit is contained in:
SinghRajenM 2016-11-23 22:56:59 +05:30 committed by Don Ho
parent 3bf3778535
commit a07fcd8f9a

View File

@ -5180,7 +5180,7 @@ void NppParameters::createXmlTreeFromGUIParams()
// <GUIConfig name="noUpdate" intervalDays="15" nextUpdateDate="20161022">no</GUIConfig>
{
TiXmlElement *element = insertGUIConfigBoolNode(newGUIRoot, TEXT("noUpdate"), _nppGUI._autoUpdateOpt._doAutoUpdate);
TiXmlElement *element = insertGUIConfigBoolNode(newGUIRoot, TEXT("noUpdate"), !_nppGUI._autoUpdateOpt._doAutoUpdate);
element->SetAttribute(TEXT("intervalDays"), _nppGUI._autoUpdateOpt._intervalDays);
element->SetAttribute(TEXT("nextUpdateDate"), _nppGUI._autoUpdateOpt._nextUpdateDate.toString().c_str());
}