mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Kill option to manually specify value of initial limit (DataLimitEnd) in preferences. Keeping the checkbox for autocalculating while rephrasing its caption. Now the limit number is set either automatically by GetCalculatedLimit() or not at all if the option is disabled. (Un-)checking the CheckboxLimit in Mainform now toggles this option permanently.
This commit is contained in:
@ -819,8 +819,15 @@ end;
|
||||
|
||||
|
||||
procedure TMainForm.ButtonOKClick(Sender: TObject);
|
||||
var
|
||||
reg: TRegistry;
|
||||
begin
|
||||
// Set Filter
|
||||
// Set auto limit option after manual checking "Limit"
|
||||
reg := TRegistry.Create;
|
||||
if reg.OpenKey( REGPATH, true ) then begin
|
||||
reg.WriteBool( REGNAME_DATALIMIT, CheckboxLimit.Checked );
|
||||
end;
|
||||
FreeAndNil(reg);
|
||||
ChildWin.DBTree.SetFocus;
|
||||
ChildWin.viewdata(self);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user