mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-25 18:21:45 +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
|
begin
|
||||||
if AOptions=EducationOptions then begin
|
if AOptions=EducationOptions then begin
|
||||||
EducationOptions.Enabled:=EnableCheckBox.Checked;
|
EducationOptions.Enabled:=EnableCheckBox.Checked;
|
||||||
if EducationOptions.Save<>mrOk then
|
|
||||||
DebugLn(['TEduEnvFrame.WriteSettings Failed']);
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -399,6 +399,7 @@ function TEduOptions.SaveToFile(Filename: string): TModalResult;
|
|||||||
var
|
var
|
||||||
Config: TConfigStorage;
|
Config: TConfigStorage;
|
||||||
begin
|
begin
|
||||||
|
//DebugLn(['TEduOptions.SaveToFile ',Filename]);
|
||||||
Config:=GetIDEConfigStorage(Filename,false);
|
Config:=GetIDEConfigStorage(Filename,false);
|
||||||
try
|
try
|
||||||
Result:=Save(Config);
|
Result:=Save(Config);
|
||||||
@ -428,11 +429,14 @@ end;
|
|||||||
procedure TEduOptions.DoAfterWrite;
|
procedure TEduOptions.DoAfterWrite;
|
||||||
begin
|
begin
|
||||||
inherited DoAfterWrite;
|
inherited DoAfterWrite;
|
||||||
|
if EducationOptions.Save<>mrOk then
|
||||||
|
DebugLn(['TEduOptions.DoAfterWrite Failed']);
|
||||||
Apply;
|
Apply;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TEduOptions.Apply;
|
procedure TEduOptions.Apply;
|
||||||
begin
|
begin
|
||||||
|
//DebugLn(['TEduOptions.Apply ']);
|
||||||
Root.Apply(Enabled);
|
Root.Apply(Enabled);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user