[NEW] Allow users to disable easter eggs in Notepad++ by adding noEasterEggs.xml in Notepad++ installed directory.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1300 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
b1f84d2788
commit
80da43da5c
@ -2131,12 +2131,18 @@ void Notepad_plus::command(int id)
|
|||||||
}
|
}
|
||||||
else if (iQuote == -2)
|
else if (iQuote == -2)
|
||||||
{
|
{
|
||||||
showAllQuotes();
|
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
|
||||||
|
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
|
||||||
|
if (!::PathFileExists(noEasterEggsPath.c_str()))
|
||||||
|
showAllQuotes();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (iQuote != -1)
|
if (iQuote != -1)
|
||||||
{
|
{
|
||||||
showQuoteFromIndex(iQuote);
|
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
|
||||||
|
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
|
||||||
|
if (!::PathFileExists(noEasterEggsPath.c_str()))
|
||||||
|
showQuoteFromIndex(iQuote);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user