mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 18:40:48 +02:00
IDE: Improve removing unknown component properties. Issue #40377.
This commit is contained in:
parent
d9608a3489
commit
27f6e20118
@ -332,6 +332,7 @@ type
|
|||||||
procedure SetDisableI18NForLFM(const AValue: boolean);
|
procedure SetDisableI18NForLFM(const AValue: boolean);
|
||||||
procedure SetFileReadOnly(const AValue: Boolean);
|
procedure SetFileReadOnly(const AValue: Boolean);
|
||||||
procedure SetComponent(const AValue: TComponent);
|
procedure SetComponent(const AValue: TComponent);
|
||||||
|
procedure SetHasErrorInLFM(AValue: boolean);
|
||||||
procedure SetLoaded(const AValue: Boolean);
|
procedure SetLoaded(const AValue: Boolean);
|
||||||
procedure SetLoadedDesigner(const AValue: Boolean);
|
procedure SetLoadedDesigner(const AValue: Boolean);
|
||||||
procedure SetModified(const AValue: boolean);
|
procedure SetModified(const AValue: boolean);
|
||||||
@ -472,7 +473,7 @@ type
|
|||||||
property Loaded: Boolean read fLoaded write SetLoaded;
|
property Loaded: Boolean read fLoaded write SetLoaded;
|
||||||
property LoadedDesigner: Boolean read fLoadedDesigner write SetLoadedDesigner;
|
property LoadedDesigner: Boolean read fLoadedDesigner write SetLoadedDesigner;
|
||||||
property LoadingComponent: boolean read FLoadingComponent write FLoadingComponent;
|
property LoadingComponent: boolean read FLoadingComponent write FLoadingComponent;
|
||||||
property HasErrorInLFM: boolean read fHasErrorInLFM write fHasErrorInLFM;
|
property HasErrorInLFM: boolean read fHasErrorInLFM write SetHasErrorInLFM;
|
||||||
property Modified: boolean read GetModified write SetModified;// not Session data
|
property Modified: boolean read GetModified write SetModified;// not Session data
|
||||||
property SessionModified: boolean read FSessionModified write SetSessionModified;
|
property SessionModified: boolean read FSessionModified write SetSessionModified;
|
||||||
property OnFileBackup: TOnFileBackup read fOnFileBackup write fOnFileBackup;
|
property OnFileBackup: TOnFileBackup read fOnFileBackup write fOnFileBackup;
|
||||||
@ -2639,6 +2640,13 @@ begin
|
|||||||
FResourceBaseClass:=GetComponentBaseClass(fComponent.ClassType);
|
FResourceBaseClass:=GetComponentBaseClass(fComponent.ClassType);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TUnitInfo.SetHasErrorInLFM(AValue: boolean);
|
||||||
|
begin
|
||||||
|
if fHasErrorInLFM=AValue then Exit;
|
||||||
|
fHasErrorInLFM:=AValue;
|
||||||
|
Modified:=true;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TUnitInfo.SetIsPartOfProject(const AValue: boolean);
|
procedure TUnitInfo.SetIsPartOfProject(const AValue: boolean);
|
||||||
begin
|
begin
|
||||||
if IsPartOfProject=AValue then exit;
|
if IsPartOfProject=AValue then exit;
|
||||||
|
@ -6299,10 +6299,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
LFMUnitInfo:=Project1.UnitWithEditorComponent(SourceEditorManager.ActiveEditor);
|
LFMUnitInfo:=Project1.UnitWithEditorComponent(SourceEditorManager.ActiveEditor);
|
||||||
Result:=CheckLFMInEditor(LFMUnitInfo, true);
|
Result:=CheckLFMInEditor(LFMUnitInfo, true);
|
||||||
if Result=mrOk then begin
|
if Result=mrOk then
|
||||||
AnUnitInfo.HasErrorInLFM:=False;
|
AnUnitInfo.HasErrorInLFM:=False;
|
||||||
Result:=mrCancel;
|
|
||||||
end;
|
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user