IDE: Save also Macro editors with "Save All" command. Issue #40268, draft by Domingo Galmés.

This commit is contained in:
Juha 2023-05-18 10:02:23 +03:00
parent 867938ca00
commit 1a9142c9e2
2 changed files with 2 additions and 2 deletions

View File

@ -5775,7 +5775,7 @@ begin
exit(mrAbort);
end;
if CurResult<>mrOk then Result:=mrCancel;
CurResult:=DoSaveProject(Flags);
CurResult:=DoSaveProject(Flags+[sfSaveNonProjectFiles]);
if CurResult<>mrOK then begin
if ConsoleVerbosity>0 then
debugln(['Error: (lazarus) [TMainIDE.DoSaveAll] DoSaveProject failed']);

View File

@ -4062,7 +4062,7 @@ begin
if AnUnitInfo.IsVirtual then begin
if (sfSaveToTestDir in Flags) then
Include(SaveFileFlags,sfSaveToTestDir)
else
else if not (sfSaveNonProjectFiles in Flags) then
continue;
end;
end;