mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-23 08:41:38 +02:00
educationlaz: fixed saving after colleting values from frames
git-svn-id: trunk@24821 -
This commit is contained in:
parent
700c6e51b2
commit
971b487b42
@ -118,8 +118,6 @@ procedure TEduEnvFrame.WriteSettings(AOptions: TAbstractIDEOptions);
|
||||
begin
|
||||
if AOptions=EducationOptions then begin
|
||||
EducationOptions.Enabled:=EnableCheckBox.Checked;
|
||||
if EducationOptions.Save<>mrOk then
|
||||
DebugLn(['TEduEnvFrame.WriteSettings Failed']);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -399,6 +399,7 @@ function TEduOptions.SaveToFile(Filename: string): TModalResult;
|
||||
var
|
||||
Config: TConfigStorage;
|
||||
begin
|
||||
//DebugLn(['TEduOptions.SaveToFile ',Filename]);
|
||||
Config:=GetIDEConfigStorage(Filename,false);
|
||||
try
|
||||
Result:=Save(Config);
|
||||
@ -428,11 +429,14 @@ end;
|
||||
procedure TEduOptions.DoAfterWrite;
|
||||
begin
|
||||
inherited DoAfterWrite;
|
||||
if EducationOptions.Save<>mrOk then
|
||||
DebugLn(['TEduOptions.DoAfterWrite Failed']);
|
||||
Apply;
|
||||
end;
|
||||
|
||||
procedure TEduOptions.Apply;
|
||||
begin
|
||||
//DebugLn(['TEduOptions.Apply ']);
|
||||
Root.Apply(Enabled);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user