[Lazarus] AutoSave does not save project file...
Bo Berglund
bo.berglund at gmail.com
Sun Apr 11 21:04:53 CEST 2021
On Sun, 11 Apr 2021 11:29:36 +0200, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>Is there a way to configure or modify AutoSave so it also saves the main project
>files?
I looked at the Autosave sources on github and found this in the save timer:
procedure TAutoSave.OnTimer(Sender: TObject);
begin
if Settings = nil then
begin
if LazarusIDE <> nil then //wait until IDE startup
begin
Settings :=
TSettings.Create(AppendPathDelim(LazarusIDE.GetPrimaryConfigPath) +
cAutoSaveConfigFile);
FTimer.StopTimer;
FTimer.Interval := Settings.AutoSaveInteval*1000;
FTimer.StartTimer;
end;
end
else
begin
if Settings.EnableAutoSave then
LazarusIDE.DoSaveAll([sfDoNotSaveVirtualFiles, sfCanAbort,
sfQuietUnitCheck]);
end;
end;
So it calls LazarusIDE.DoSaveAll, which means that somehow whan DoSaveAll
Lazarus itself fails to save the project file itself....
Can this be fixed?
--
Bo Berglund
Developer in Sweden
More information about the lazarus
mailing list