Fix "Don't check at launch time" not working problem
Preferences... -> Recent Files History -> Don't check at launch time does not work anymore. If it is unchecked, it will be checked again on next Notepad++ launch time. Fixes #2746
This commit is contained in:
parent
8efadf9bf7
commit
cad87a0124
|
@ -2051,8 +2051,8 @@ void NppParameters::feedFileListParameters(TiXmlNode *node)
|
|||
|
||||
// inSubMenu value
|
||||
strVal = (historyRoot->ToElement())->Attribute(TEXT("inSubMenu"));
|
||||
if (lstrcmp(strVal, TEXT("yes")) == 0)
|
||||
_putRecentFileInSubMenu = true;
|
||||
if (strVal)
|
||||
_putRecentFileInSubMenu = (lstrcmp(strVal, TEXT("yes")) == 0);
|
||||
|
||||
for (TiXmlNode *childNode = historyRoot->FirstChildElement(TEXT("File"));
|
||||
childNode && (_nbRecentFile < NB_MAX_LRF_FILE);
|
||||
|
@ -2173,39 +2173,39 @@ void NppParameters::feedFindHistoryParameters(TiXmlNode *node)
|
|||
|
||||
const TCHAR *boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("matchWord"));
|
||||
if (boolStr)
|
||||
_findHistory._isMatchWord = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isMatchWord = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("matchCase"));
|
||||
if (boolStr)
|
||||
_findHistory._isMatchCase = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isMatchCase = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("wrap"));
|
||||
if (boolStr)
|
||||
_findHistory._isWrap = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isWrap = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("directionDown"));
|
||||
if (boolStr)
|
||||
_findHistory._isDirectionDown = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isDirectionDown = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("fifRecuisive"));
|
||||
if (boolStr)
|
||||
_findHistory._isFifRecuisive = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isFifRecuisive = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("fifInHiddenFolder"));
|
||||
if (boolStr)
|
||||
_findHistory._isFifInHiddenFolder = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isFifInHiddenFolder = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("dlgAlwaysVisible"));
|
||||
if (boolStr)
|
||||
_findHistory._isDlgAlwaysVisible = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isDlgAlwaysVisible = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("fifFilterFollowsDoc"));
|
||||
if (boolStr)
|
||||
_findHistory._isFilterFollowDoc = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isFilterFollowDoc = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("fifFolderFollowsDoc"));
|
||||
if (boolStr)
|
||||
_findHistory._isFolderFollowDoc = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._isFolderFollowDoc = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
int mode = 0;
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("searchMode"), &mode);
|
||||
|
@ -2222,7 +2222,7 @@ void NppParameters::feedFindHistoryParameters(TiXmlNode *node)
|
|||
|
||||
boolStr = (findHistoryRoot->ToElement())->Attribute(TEXT("dotMatchesNewline"));
|
||||
if (boolStr)
|
||||
_findHistory._dotMatchesNewline = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_findHistory._dotMatchesNewline = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
}
|
||||
|
||||
void NppParameters::feedShortcut(TiXmlNode *node)
|
||||
|
@ -2405,17 +2405,17 @@ void NppParameters::feedScintKeys(TiXmlNode *node)
|
|||
const TCHAR *str = (nextNode->ToElement())->Attribute(TEXT("Ctrl"));
|
||||
if (!str)
|
||||
continue;
|
||||
kc._isCtrl = !lstrcmp(TEXT("yes"), str);
|
||||
kc._isCtrl = (lstrcmp(TEXT("yes"), str) == 0);
|
||||
|
||||
str = (nextNode->ToElement())->Attribute(TEXT("Alt"));
|
||||
if (!str)
|
||||
continue;
|
||||
kc._isAlt = !lstrcmp(TEXT("yes"), str);
|
||||
kc._isAlt = (lstrcmp(TEXT("yes"), str) == 0);
|
||||
|
||||
str = (nextNode->ToElement())->Attribute(TEXT("Shift"));
|
||||
if (!str)
|
||||
continue;
|
||||
kc._isShift = !lstrcmp(TEXT("yes"), str);
|
||||
kc._isShift = (lstrcmp(TEXT("yes"), str) == 0);
|
||||
|
||||
int key;
|
||||
str = (nextNode->ToElement())->Attribute(TEXT("Key"), &key);
|
||||
|
@ -2459,17 +2459,17 @@ bool NppParameters::getShortcuts(TiXmlNode *node, Shortcut & sc)
|
|||
bool isCtrl = false;
|
||||
const TCHAR *isCtrlStr = (node->ToElement())->Attribute(TEXT("Ctrl"));
|
||||
if (isCtrlStr)
|
||||
isCtrl = !lstrcmp(TEXT("yes"), isCtrlStr);
|
||||
isCtrl = (lstrcmp(TEXT("yes"), isCtrlStr) == 0);
|
||||
|
||||
bool isAlt = false;
|
||||
const TCHAR *isAltStr = (node->ToElement())->Attribute(TEXT("Alt"));
|
||||
if (isAltStr)
|
||||
isAlt = !lstrcmp(TEXT("yes"), isAltStr);
|
||||
isAlt = (lstrcmp(TEXT("yes"), isAltStr) == 0);
|
||||
|
||||
bool isShift = false;
|
||||
const TCHAR *isShiftStr = (node->ToElement())->Attribute(TEXT("Shift"));
|
||||
if (isShiftStr)
|
||||
isShift = !lstrcmp(TEXT("yes"), isShiftStr);
|
||||
isShift = (lstrcmp(TEXT("yes"), isShiftStr) == 0);
|
||||
|
||||
int key;
|
||||
const TCHAR *keyStr = (node->ToElement())->Attribute(TEXT("Key"), &key);
|
||||
|
@ -3051,18 +3051,18 @@ void NppParameters::feedUserSettings(TiXmlNode *settingsRoot)
|
|||
{
|
||||
boolStr = (globalSettingNode->ToElement())->Attribute(TEXT("caseIgnored"));
|
||||
if (boolStr)
|
||||
_userLangArray[_nbUserLang - 1]->_isCaseIgnored = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_userLangArray[_nbUserLang - 1]->_isCaseIgnored = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
boolStr = (globalSettingNode->ToElement())->Attribute(TEXT("allowFoldOfComments"));
|
||||
if (boolStr)
|
||||
_userLangArray[_nbUserLang - 1]->_allowFoldOfComments = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_userLangArray[_nbUserLang - 1]->_allowFoldOfComments = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
|
||||
(globalSettingNode->ToElement())->Attribute(TEXT("forcePureLC"), &_userLangArray[_nbUserLang - 1]->_forcePureLC);
|
||||
(globalSettingNode->ToElement())->Attribute(TEXT("decimalSeparator"), &_userLangArray[_nbUserLang - 1]->_decimalSeparator);
|
||||
|
||||
boolStr = (globalSettingNode->ToElement())->Attribute(TEXT("foldCompact"));
|
||||
if (boolStr)
|
||||
_userLangArray[_nbUserLang - 1]->_foldCompact = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_userLangArray[_nbUserLang - 1]->_foldCompact = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
}
|
||||
|
||||
TiXmlNode *prefixNode = settingsRoot->FirstChildElement(TEXT("Prefix"));
|
||||
|
@ -3075,7 +3075,7 @@ void NppParameters::feedUserSettings(TiXmlNode *settingsRoot)
|
|||
{
|
||||
boolStr = (prefixNode->ToElement())->Attribute(globalMappper().keywordNameMapper[i+SCE_USER_KWLIST_KEYWORDS1]);
|
||||
if (boolStr)
|
||||
_userLangArray[_nbUserLang - 1]->_isPrefix[i] = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_userLangArray[_nbUserLang - 1]->_isPrefix[i] = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
}
|
||||
}
|
||||
else // support for old style (pre 2.0)
|
||||
|
@ -3085,7 +3085,7 @@ void NppParameters::feedUserSettings(TiXmlNode *settingsRoot)
|
|||
{
|
||||
boolStr = (prefixNode->ToElement())->Attribute(names[i]);
|
||||
if (boolStr)
|
||||
_userLangArray[_nbUserLang - 1]->_isPrefix[i] = !lstrcmp(TEXT("yes"), boolStr);
|
||||
_userLangArray[_nbUserLang - 1]->_isPrefix[i] = (lstrcmp(TEXT("yes"), boolStr) == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3215,7 +3215,7 @@ bool NppParameters::feedStylerArray(TiXmlNode *node)
|
|||
if (lexerName)
|
||||
{
|
||||
_lexerStylerArray.addLexerStyler(lexerName, lexerDesc, lexerUserExt, childNode);
|
||||
if (lexerExcluded != NULL && !lstrcmp(lexerExcluded, TEXT("yes")))
|
||||
if (lexerExcluded != NULL && (lstrcmp(lexerExcluded, TEXT("yes")) == 0))
|
||||
{
|
||||
int index = getExternalLangIndexFromName(lexerName);
|
||||
if (index != -1)
|
||||
|
@ -3940,8 +3940,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
const TCHAR* val = n->Value();
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
_nppGUI._isMinimizedToTray = true;
|
||||
_nppGUI._isMinimizedToTray = (lstrcmp(val, TEXT("yes")) == 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3953,7 +3952,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
const TCHAR* val = n->Value();
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._rememberLastSession = true;
|
||||
else
|
||||
_nppGUI._rememberLastSession = false;
|
||||
|
@ -3968,14 +3967,14 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
const TCHAR* val = n->Value();
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._detectEncoding = true;
|
||||
else
|
||||
_nppGUI._detectEncoding = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!lstrcmp(nm, TEXT("MaitainIndent")))
|
||||
else if (lstrcmp(nm, TEXT("MaitainIndent")) == 0)
|
||||
{
|
||||
TiXmlNode *n = childNode->FirstChild();
|
||||
if (n)
|
||||
|
@ -3983,7 +3982,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
const TCHAR* val = n->Value();
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._maitainIndent = true;
|
||||
else
|
||||
_nppGUI._maitainIndent = false;
|
||||
|
@ -3999,7 +3998,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
const TCHAR* val = n->Value();
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._enableSmartHilite = true;
|
||||
else
|
||||
_nppGUI._enableSmartHilite = false;
|
||||
|
@ -4008,7 +4007,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
val = element->Attribute(TEXT("matchCase"));
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._smartHiliteCaseSensitive = true;
|
||||
else if (!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._smartHiliteCaseSensitive = false;
|
||||
|
@ -4017,7 +4016,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
val = element->Attribute(TEXT("wholeWordOnly"));
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._smartHiliteWordOnly = true;
|
||||
else if (!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._smartHiliteWordOnly = false;
|
||||
|
@ -4026,7 +4025,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
val = element->Attribute(TEXT("useFindSettings"));
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._smartHiliteUseFindSettings = true;
|
||||
else if (!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._smartHiliteUseFindSettings = false;
|
||||
|
@ -4035,7 +4034,7 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
val = element->Attribute(TEXT("onAnotherView"));
|
||||
if (val)
|
||||
{
|
||||
if (!lstrcmp(val, TEXT("yes")))
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._smartHiliteOnAnotherView = true;
|
||||
else if (!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._smartHiliteOnAnotherView = false;
|
||||
|
@ -4115,6 +4114,8 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
{
|
||||
if (!lstrcmp(val, TEXT("no")))
|
||||
_nppGUI._checkHistoryFiles = false;
|
||||
else if (!lstrcmp(val, TEXT("yes")))
|
||||
_nppGUI._checkHistoryFiles = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4196,8 +4197,13 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
else if (!lstrcmp(nm, TEXT("ScintillaGlobalSettings")))
|
||||
{
|
||||
const TCHAR* val = element->Attribute(TEXT("enableMultiSelection"));
|
||||
if (val && lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._enableMultiSelection = true;
|
||||
if (val)
|
||||
{
|
||||
if (lstrcmp(val, TEXT("yes")) == 0)
|
||||
_nppGUI._enableMultiSelection = true;
|
||||
else if (lstrcmp(val, TEXT("no")) == 0)
|
||||
_nppGUI._enableMultiSelection = false;
|
||||
}
|
||||
}
|
||||
|
||||
else if (!lstrcmp(nm, TEXT("AppPosition")))
|
||||
|
@ -4478,9 +4484,9 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
_nppGUI._backup = (BackupFeature)i;
|
||||
|
||||
const TCHAR *bDir = element->Attribute(TEXT("useCustumDir"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
if (bDir)
|
||||
{
|
||||
_nppGUI._useDir = true;
|
||||
_nppGUI._useDir = (lstrcmp(bDir, TEXT("yes")) == 0);;
|
||||
}
|
||||
const TCHAR *pDir = element->Attribute(TEXT("dir"));
|
||||
if (pDir)
|
||||
|
@ -4503,34 +4509,32 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
else if (!lstrcmp(nm, TEXT("globalOverride")))
|
||||
{
|
||||
const TCHAR *bDir = element->Attribute(TEXT("fg"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
{
|
||||
_nppGUI._globalOverride.enableFg = true;
|
||||
}
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableFg = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("bg"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableBg = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableBg = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("font"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableFont = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableFont = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("fontSize"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableFontSize = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableFontSize = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("bold"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableBold = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableBold = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("italic"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableItalic = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableItalic = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
|
||||
bDir = element->Attribute(TEXT("underline"));
|
||||
if (bDir && !lstrcmp(bDir, TEXT("yes")))
|
||||
_nppGUI._globalOverride.enableUnderLine = true;
|
||||
if (bDir)
|
||||
_nppGUI._globalOverride.enableUnderLine = (lstrcmp(bDir, TEXT("yes")) == 0);
|
||||
}
|
||||
else if (!lstrcmp(nm, TEXT("auto-completion")))
|
||||
{
|
||||
|
@ -4542,38 +4546,38 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
_nppGUI._autocFromLen = i;
|
||||
|
||||
const TCHAR * optName = element->Attribute(TEXT("autoCIgnoreNumbers"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._autocIgnoreNumbers = true;
|
||||
if (optName)
|
||||
_nppGUI._autocIgnoreNumbers = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("funcParams"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._funcParams = true;
|
||||
if (optName)
|
||||
_nppGUI._funcParams = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
}
|
||||
else if (!lstrcmp(nm, TEXT("auto-insert")))
|
||||
{
|
||||
const TCHAR * optName = element->Attribute(TEXT("htmlXmlTag"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doHtmlXmlTag = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doHtmlXmlTag = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("parentheses"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doParentheses = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doParentheses = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("brackets"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doBrackets = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doBrackets = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("curlyBrackets"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doCurlyBrackets = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doCurlyBrackets = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("quotes"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doQuotes = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doQuotes = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
optName = element->Attribute(TEXT("doubleQuotes"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._matchedPairConf._doDoubleQuotes = true;
|
||||
if (optName)
|
||||
_nppGUI._matchedPairConf._doDoubleQuotes = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
for (TiXmlNode *subChildNode = childNode->FirstChildElement(TEXT("UserDefinePair"));
|
||||
subChildNode;
|
||||
|
@ -4711,20 +4715,20 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|||
else if (!lstrcmp(nm, TEXT("MISC")))
|
||||
{
|
||||
const TCHAR * optName = element->Attribute(TEXT("fileSwitcherWithoutExtColumn"));
|
||||
if (optName && !lstrcmp(optName, TEXT("yes")))
|
||||
_nppGUI._fileSwitcherWithoutExtColumn = true;
|
||||
if (optName)
|
||||
_nppGUI._fileSwitcherWithoutExtColumn = (lstrcmp(optName, TEXT("yes")) == 0);
|
||||
|
||||
const TCHAR * optNameBackSlashEscape = element->Attribute(TEXT("backSlashIsEscapeCharacterForSql"));
|
||||
if (optNameBackSlashEscape && !lstrcmp(optNameBackSlashEscape, TEXT("no")))
|
||||
_nppGUI._backSlashIsEscapeCharacterForSql = false;
|
||||
|
||||
const TCHAR * optNameNewStyleSaveDlg = element->Attribute(TEXT("newStyleSaveDlg"));
|
||||
if (optNameNewStyleSaveDlg && !lstrcmp(optNameNewStyleSaveDlg, TEXT("yes")))
|
||||
_nppGUI._useNewStyleSaveDlg = true;
|
||||
if (optNameNewStyleSaveDlg)
|
||||
_nppGUI._useNewStyleSaveDlg = (lstrcmp(optNameNewStyleSaveDlg, TEXT("yes")) == 0);
|
||||
|
||||
const TCHAR * optNameFolderDroppedOpenFiles = element->Attribute(TEXT("isFolderDroppedOpenFiles"));
|
||||
if (optNameFolderDroppedOpenFiles && !lstrcmp(optNameFolderDroppedOpenFiles, TEXT("yes")))
|
||||
_nppGUI._isFolderDroppedOpenFiles = true;
|
||||
if (optNameFolderDroppedOpenFiles)
|
||||
_nppGUI._isFolderDroppedOpenFiles = (lstrcmp(optNameFolderDroppedOpenFiles, TEXT("yes")) == 0);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue