+ fix: manual entry for "Suppressed Messages" set as '-1' will hide checkbox for "Don't display again"

This commit is contained in:
Rainer Kottenhoff 2019-07-30 11:47:46 +02:00
parent 7ec585353b
commit 803fc680d8
4 changed files with 9 additions and 4 deletions

View File

@ -1 +1 @@
2517
2518

View File

@ -3,7 +3,7 @@
<assemblyIdentity
name="Notepad3"
processorArchitecture="*"
version="5.19.730.2517"
version="5.19.730.2518"
type="win32"
/>
<description>Notepad3 RC2</description>

View File

@ -285,8 +285,13 @@ INT_PTR InfoBoxLng(UINT uType, LPCWSTR lpstrSetting, UINT uidMsg, ...)
case IDYES:
case IDCONTINUE:
return iMode;
case 0:
// no entry found
case -1:
// disable "Don't display again" check-box
break;
default:
IniFileDelete(Globals.IniFile, Constants.SectionSuppressedMessages, lpstrSetting, false);
break;
@ -335,7 +340,7 @@ INT_PTR InfoBoxLng(UINT uType, LPCWSTR lpstrSetting, UINT uidMsg, ...)
}
msgBox.lpstrSetting = (LPWSTR)lpstrSetting;
msgBox.bDisableCheckBox = (StrIsEmpty(Globals.IniFile) || StrIsEmpty(lpstrSetting)) ? true : false;
msgBox.bDisableCheckBox = (StrIsEmpty(Globals.IniFile) || StrIsEmpty(lpstrSetting) || (iMode < 0) ? true : false;
int idDlg;

View File

@ -8,7 +8,7 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 19
#define VERSION_REV 730
#define VERSION_BUILD 2517
#define VERSION_BUILD 2518
#define SCINTILLA_VER 420
#define ONIGURUMA_REGEX_VER 6.9.3
#define VERSION_PATCH RC2