Fix Dark mode default theme not being applied bug

This commit is contained in:
Don HO 2021-05-18 17:06:42 +02:00
parent 6c19e88242
commit 19c3035d5a
1 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,10 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
themeDir.clear();
themeDir = nppDir.c_str(); // <- should use the pointer to avoid the constructor of copy
PathAppend(themeDir, TEXT("themes\\"));
if (themeSwitcher.getThemeDirPath().empty())
themeSwitcher.setThemeDirPath(themeDir);
_notepad_plus_plus_core.getMatchedFileNames(themeDir.c_str(), patterns, fileNames, false, false);
for (size_t i = 0, len = fileNames.size(); i < len ; ++i)
{