[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,11 +2131,17 @@ void Notepad_plus::command(int id)
|
|||||||
}
|
}
|
||||||
else if (iQuote == -2)
|
else if (iQuote == -2)
|
||||||
{
|
{
|
||||||
|
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
|
||||||
|
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
|
||||||
|
if (!::PathFileExists(noEasterEggsPath.c_str()))
|
||||||
showAllQuotes();
|
showAllQuotes();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (iQuote != -1)
|
if (iQuote != -1)
|
||||||
{
|
{
|
||||||
|
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
|
||||||
|
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
|
||||||
|
if (!::PathFileExists(noEasterEggsPath.c_str()))
|
||||||
showQuoteFromIndex(iQuote);
|
showQuoteFromIndex(iQuote);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user