mirror of https://gitlab.com/basile.b/dexed.git
added assign to TCEPersistent shortcut
This commit is contained in:
parent
5cd90da065
commit
b7e655df41
|
|
@ -60,6 +60,8 @@ type
|
||||||
published
|
published
|
||||||
property shortcut: TShortCut read fShortcut write fShortcut;
|
property shortcut: TShortCut read fShortcut write fShortcut;
|
||||||
property actionName: string read fActionName write fActionName;
|
property actionName: string read fActionName write fActionName;
|
||||||
|
public
|
||||||
|
procedure assign(aValue: TPersistent); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
(**
|
(**
|
||||||
|
|
@ -213,6 +215,19 @@ type
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
procedure TCEPersistentShortcut.assign(aValue: TPersistent);
|
||||||
|
var
|
||||||
|
src: TCEPersistentShortcut;
|
||||||
|
begin
|
||||||
|
if aValue is TCEPersistentShortcut then
|
||||||
|
begin
|
||||||
|
src := TCEPersistentShortcut(Avalue);
|
||||||
|
fActionName := src.fActionName;
|
||||||
|
fShortcut := src.fShortcut;
|
||||||
|
end
|
||||||
|
else inherited;
|
||||||
|
end;
|
||||||
|
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
constructor TCheckedAsyncProcess.Create(aOwner: TComponent);
|
constructor TCheckedAsyncProcess.Create(aOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue