mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ add: support (internal) development debug mode by [Settings2] (DevDebugMode=1)
This commit is contained in:
parent
4642ef1114
commit
ca487d4909
Binary file not shown.
@ -1335,8 +1335,9 @@ bool EditLoadFile(
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// UCHARDET
|
||||
_SetEncodingTitleInfo(origUCHARDET, iAnalyzedEncoding_UCD, confidence_UCD, iAnalyzedEncoding_CED, bIsReliable);
|
||||
if (Flags.bDevDebugMode) {
|
||||
_SetEncodingTitleInfo(origUCHARDET, iAnalyzedEncoding_UCD, confidence_UCD, iAnalyzedEncoding_CED, bIsReliable);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@ -457,6 +457,7 @@ static void _InitGlobals()
|
||||
Globals.FindReplaceMatchFoundState = FND_NOP;
|
||||
|
||||
|
||||
DefaultFlags.bDevDebugMode = false;
|
||||
DefaultFlags.bStickyWindowPosition = false;
|
||||
DefaultFlags.bReuseWindow = false;
|
||||
DefaultFlags.bSingleFileInstance = true;
|
||||
@ -6812,6 +6813,8 @@ void LoadSettings()
|
||||
LoadIniSection(L"Settings2", pIniSection, cchIniSection);
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Defaults2.PreferredLanguageLocaleName[0] = L'\0';
|
||||
IniSectionGetString(pIniSection, L"PreferredLanguageLocaleName", Defaults2.PreferredLanguageLocaleName,
|
||||
Settings2.PreferredLanguageLocaleName, COUNTOF(Settings2.PreferredLanguageLocaleName));
|
||||
@ -7930,6 +7933,7 @@ void LoadFlags()
|
||||
{
|
||||
LoadIniSection(L"Settings2", pIniSection, cchIniSection);
|
||||
|
||||
Flags.bDevDebugMode = IniSectionGetBool(pIniSection, L"DevDebugMode", DefaultFlags.bDevDebugMode);
|
||||
Flags.bStickyWindowPosition = IniSectionGetBool(pIniSection, L"StickyWindowPosition", DefaultFlags.bStickyWindowPosition);
|
||||
Flags.bReuseWindow = IniSectionGetBool(pIniSection, L"ReuseWindow", DefaultFlags.bReuseWindow);
|
||||
Flags.bSingleFileInstance = IniSectionGetBool(pIniSection, L"SingleFileInstance", DefaultFlags.bSingleFileInstance);
|
||||
|
||||
@ -420,6 +420,7 @@ extern SETTINGS_T Settings;
|
||||
|
||||
typedef struct _flags_t
|
||||
{
|
||||
bool bDevDebugMode;
|
||||
bool bStickyWindowPosition;
|
||||
bool bReuseWindow;
|
||||
bool bSingleFileInstance;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user