mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-17 21:03:19 +08:00
+ fix: "Default Font..." add check for current scheme is not default text already
This commit is contained in:
parent
a0cc8a02e9
commit
4ea8be9a0d
@ -4041,7 +4041,11 @@ void Style_SetDefaultFont(HWND hwnd)
|
||||
|
||||
if (Style_SelectFont(hwnd, font, COUNTOF(font), TRUE, TRUE))
|
||||
{
|
||||
switch (InfoBox(MBYESNO, L"MsgApplyDefaultFont", IDS_APPLY_DEFAULT_FONT, pLexCurrent->pszName))
|
||||
INT_PTR answer = IDNO;
|
||||
if (pLexCurrent != &lexDefault) {
|
||||
answer = InfoBox(MBYESNO, L"MsgApplyDefaultFont", IDS_APPLY_DEFAULT_FONT, pLexCurrent->pszName);
|
||||
}
|
||||
switch (answer)
|
||||
{
|
||||
case IDYES:
|
||||
// build styles string
|
||||
|
||||
Loading…
Reference in New Issue
Block a user