mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Incorrect display of configuration directory
This commit is contained in:
parent
630a2d7645
commit
0219763670
2 changed files with 2 additions and 3 deletions
|
|
@ -375,7 +375,7 @@ begin
|
|||
end;
|
||||
// Show configuration directory
|
||||
rbProgramDir.Caption:= rbProgramDir.Caption + ' - [' + gpCfgDir + ']';
|
||||
rbUserHomeDir.Caption:= rbUserHomeDir.Caption + ' - [' + gpIniDir + ']';
|
||||
rbUserHomeDir.Caption:= rbUserHomeDir.Caption + ' - [' + GetAppConfigDir + PathDelim + ']';
|
||||
// tvTreeView localization
|
||||
with tvTreeView.Items do
|
||||
begin
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ procedure LoadPaths;
|
|||
var
|
||||
Ini : TIniFileEx;
|
||||
begin
|
||||
OnGetApplicationName := @GetAppName;
|
||||
gpExePath := ExtractFilePath(SysToUTF8(ParamStr(0)));
|
||||
DebugLn('Executable directory: ', gpExePath);
|
||||
|
||||
|
|
@ -36,11 +37,9 @@ begin
|
|||
end
|
||||
else
|
||||
begin
|
||||
OnGetApplicationName := @GetAppName;
|
||||
gpIniDir := GetAppConfigDir;//(False);
|
||||
if not mbDirectoryExists(gpIniDir) then
|
||||
ForceDirectory(gpIniDir);
|
||||
OnGetApplicationName := nil;
|
||||
gpIniDir := IncludeTrailingPathDelimiter(gpIniDir); // add if need path delimiter
|
||||
end;
|
||||
Ini.Free;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue