UDL: preserve DarMode-ness upon saving

Fix #10583, close #10570
This commit is contained in:
Ivan Ustûžanin 2021-09-20 01:46:57 +03:00 committed by Don Ho
parent 2159126d8e
commit 19cf5c9037
1 changed files with 2 additions and 0 deletions

View File

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