mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Editing XML config manually.
This commit is contained in:
parent
717e0093a1
commit
7cfdbbd70a
1 changed files with 7 additions and 3 deletions
|
|
@ -755,7 +755,7 @@ procedure TfrmOptions.btnApplyClick(Sender: TObject);
|
|||
begin
|
||||
// save all configuration
|
||||
SaveConfig;
|
||||
// write to ini file
|
||||
// write to config file
|
||||
SaveGlobs;
|
||||
end;
|
||||
|
||||
|
|
@ -1920,14 +1920,18 @@ end;
|
|||
|
||||
procedure TfrmOptions.btnConfigApplyClick(Sender: TObject);
|
||||
begin
|
||||
LoadGlobs;
|
||||
gConfig.Load; // force reloading config from file
|
||||
LoadGlobs(dcVersion);
|
||||
LoadConfig;
|
||||
btnConfigApply.Enabled:= False;
|
||||
end;
|
||||
|
||||
procedure TfrmOptions.btnConfigEditClick(Sender: TObject);
|
||||
begin
|
||||
ShowEditorByGlob(gpCfgDir + 'doublecmd.ini');
|
||||
if Assigned(gIni) then
|
||||
ShowEditorByGlob(gpCfgDir + 'doublecmd.ini')
|
||||
else
|
||||
ShowEditorByGlob(gpCfgDir + 'doublecmd.xml');
|
||||
btnConfigApply.Enabled:= True;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue