mirror of https://gitlab.com/basile.b/dexed.git
disable widgets timers by default
This commit is contained in:
parent
49ecb0aa0a
commit
0a80061d92
|
@ -256,6 +256,10 @@ begin
|
||||||
widg.fastDisplay:= fFastDisplay;
|
widg.fastDisplay:= fFastDisplay;
|
||||||
widg.fMsgColors := fMsgColors;
|
widg.fMsgColors := fMsgColors;
|
||||||
widg.fAutoDemangle:=fAutoDemangle;
|
widg.fAutoDemangle:=fAutoDemangle;
|
||||||
|
if fFastDisplay then
|
||||||
|
widg.updaterByLoopInterval:= 70
|
||||||
|
else
|
||||||
|
widg.updaterByLoopInterval:= 0;
|
||||||
end
|
end
|
||||||
else inherited;
|
else inherited;
|
||||||
end;
|
end;
|
||||||
|
|
|
@ -144,7 +144,7 @@ begin
|
||||||
fToolBarVisible := true;
|
fToolBarVisible := true;
|
||||||
fIsDockable := true;
|
fIsDockable := true;
|
||||||
fUpdaterAuto := TTimer.Create(self);
|
fUpdaterAuto := TTimer.Create(self);
|
||||||
fUpdaterAuto.Interval := 70;
|
fUpdaterAuto.Interval := 0;
|
||||||
fUpdaterAuto.OnTimer := @updaterAutoProc;
|
fUpdaterAuto.OnTimer := @updaterAutoProc;
|
||||||
fUpdaterDelay := TTimer.Create(self);
|
fUpdaterDelay := TTimer.Create(self);
|
||||||
|
|
||||||
|
@ -269,10 +269,16 @@ end;
|
||||||
|
|
||||||
procedure TCEWidget.setLoopInt(value: Integer);
|
procedure TCEWidget.setLoopInt(value: Integer);
|
||||||
begin
|
begin
|
||||||
if value < 30 then value := 30;
|
if fLoopInter = value then
|
||||||
if fLoopInter = value then exit;
|
exit;
|
||||||
fLoopInter := value;
|
fLoopInter := value;
|
||||||
fUpdaterAuto.Interval := fLoopInter;
|
fUpdaterAuto.Interval := fLoopInter;
|
||||||
|
if value = 0 then
|
||||||
|
begin
|
||||||
|
fUpdaterAuto.Enabled:= false;
|
||||||
|
fLoopUpdateCount := 0;
|
||||||
|
end
|
||||||
|
else fUpdaterAuto.Enabled:= true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEWidget.IncLoopUpdate;
|
procedure TCEWidget.IncLoopUpdate;
|
||||||
|
|
Loading…
Reference in New Issue