[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:
Don Ho 2014-12-01 22:39:08 +00:00
parent b1f84d2788
commit 80da43da5c

View File

@ -2131,12 +2131,18 @@ void Notepad_plus::command(int id)
}
else if (iQuote == -2)
{
showAllQuotes();
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
if (!::PathFileExists(noEasterEggsPath.c_str()))
showAllQuotes();
return;
}
if (iQuote != -1)
{
showQuoteFromIndex(iQuote);
generic_string noEasterEggsPath((NppParameters::getInstance())->getNppPath());
noEasterEggsPath.append(TEXT("\\noEasterEggs.xml"));
if (!::PathFileExists(noEasterEggsPath.c_str()))
showQuoteFromIndex(iQuote);
return;
}
}