mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
Fix the bug that Notepad++ create %appdata%\local\notepad++\ folder even in doLocalConf mode
This commit is contained in:
parent
de648eff62
commit
5b5dfb90a8
@ -1033,14 +1033,18 @@ bool NppParameters::load()
|
|||||||
PathAppend(_userPath, TEXT("Notepad++"));
|
PathAppend(_userPath, TEXT("Notepad++"));
|
||||||
_appdataNppDir = _userPath;
|
_appdataNppDir = _userPath;
|
||||||
|
|
||||||
|
// Plugin System V1
|
||||||
if (!PathFileExists(_userPath.c_str()))
|
if (!PathFileExists(_userPath.c_str()))
|
||||||
::CreateDirectory(_userPath.c_str(), NULL);
|
::CreateDirectory(_userPath.c_str(), NULL);
|
||||||
}
|
|
||||||
|
|
||||||
|
// Plugin System V2
|
||||||
_localAppdataNppDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA);
|
_localAppdataNppDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA);
|
||||||
PathAppend(_localAppdataNppDir, TEXT("Notepad++"));
|
PathAppend(_localAppdataNppDir, TEXT("Notepad++"));
|
||||||
if (!PathFileExists(_localAppdataNppDir.c_str()))
|
if (!PathFileExists(_localAppdataNppDir.c_str()))
|
||||||
::CreateDirectory(_localAppdataNppDir.c_str(), NULL);
|
::CreateDirectory(_localAppdataNppDir.c_str(), NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_sessionPath = _userPath; // Session stock the absolute file path, it should never be on cloud
|
_sessionPath = _userPath; // Session stock the absolute file path, it should never be on cloud
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user