On Sun, 11 Apr 2021 11:29:36 +0200, Bo Berglund via lazarus <lazarus@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 -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus