mirror of https://gitlab.com/basile.b/dexed.git
fix #364 - Terminal blinks when popups are closed
This commit is contained in:
parent
fc93ecbc8e
commit
c47d214c4f
|
@ -58,6 +58,7 @@ type
|
|||
fTerm: TTerminal;
|
||||
fOpts: TCETerminalOptions;
|
||||
fLastCd: string;
|
||||
fNeedApplyChanges: boolean;
|
||||
|
||||
procedure docNew(document: TCESynMemo);
|
||||
procedure docFocused(document: TCESynMemo);
|
||||
|
@ -73,6 +74,9 @@ type
|
|||
|
||||
protected
|
||||
|
||||
procedure DoShow; override;
|
||||
procedure SetVisible(Value: boolean); override;
|
||||
|
||||
public
|
||||
constructor create(aOwner: TComponent); override;
|
||||
destructor destroy; override;
|
||||
|
@ -218,8 +222,24 @@ begin
|
|||
inherited;
|
||||
end;
|
||||
|
||||
procedure TCETermWidget.DoShow;
|
||||
begin
|
||||
inherited;
|
||||
fNeedApplyChanges := true;
|
||||
end;
|
||||
|
||||
procedure TCETermWidget.SetVisible(Value: boolean);
|
||||
begin
|
||||
inherited;
|
||||
if Value then
|
||||
fNeedApplyChanges := true;
|
||||
end;
|
||||
|
||||
procedure TCETermWidget.ContentPaint(Sender: TObject);
|
||||
begin
|
||||
if not fNeedApplyChanges then
|
||||
exit;
|
||||
fNeedApplyChanges:=false;
|
||||
fOpts.applyChanges;
|
||||
end;
|
||||
|
||||
|
|
Loading…
Reference in New Issue