mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
Fix Dark mode default theme not being applied bug
This commit is contained in:
parent
6c19e88242
commit
19c3035d5a
@ -215,6 +215,10 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin
|
|||||||
themeDir.clear();
|
themeDir.clear();
|
||||||
themeDir = nppDir.c_str(); // <- should use the pointer to avoid the constructor of copy
|
themeDir = nppDir.c_str(); // <- should use the pointer to avoid the constructor of copy
|
||||||
PathAppend(themeDir, TEXT("themes\\"));
|
PathAppend(themeDir, TEXT("themes\\"));
|
||||||
|
|
||||||
|
if (themeSwitcher.getThemeDirPath().empty())
|
||||||
|
themeSwitcher.setThemeDirPath(themeDir);
|
||||||
|
|
||||||
_notepad_plus_plus_core.getMatchedFileNames(themeDir.c_str(), patterns, fileNames, false, false);
|
_notepad_plus_plus_core.getMatchedFileNames(themeDir.c_str(), patterns, fileNames, false, false);
|
||||||
for (size_t i = 0, len = fileNames.size(); i < len ; ++i)
|
for (size_t i = 0, len = fileNames.size(); i < len ; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user