Fixed auto-updater setting toggles between startups bug

Fixes #2597, closes #2599
pull/1821/merge
SinghRajenM 2016-11-23 22:56:59 +05:30 committed by Don Ho
parent 3bf3778535
commit a07fcd8f9a
1 changed files with 1 additions and 1 deletions

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());
}