UDL: preserve DarMode-ness upon saving

Fix #10583, close #10570
pull/10600/head
Ivan Ustûžanin 3 years ago committed by Don Ho
parent 2159126d8e
commit 19cf5c9037

@ -7245,6 +7245,8 @@ void NppParameters::insertUserLang2Tree(TiXmlNode *node, UserLangContainer *user
rootElement->SetAttribute(TEXT("name"), userLang->_name); rootElement->SetAttribute(TEXT("name"), userLang->_name);
rootElement->SetAttribute(TEXT("ext"), userLang->_ext); rootElement->SetAttribute(TEXT("ext"), userLang->_ext);
if (userLang->_isDarkModeTheme)
rootElement->SetAttribute(TEXT("darkModeTheme"), TEXT("yes"));
rootElement->SetAttribute(TEXT("udlVersion"), udlVersion.c_str()); rootElement->SetAttribute(TEXT("udlVersion"), udlVersion.c_str());
TiXmlElement *settingsElement = (rootElement->InsertEndChild(TiXmlElement(TEXT("Settings"))))->ToElement(); TiXmlElement *settingsElement = (rootElement->InsertEndChild(TiXmlElement(TEXT("Settings"))))->ToElement();

Loading…
Cancel
Save