Fix: Cocoa/TKASPathEdit: call AutoComplete() only when changed by user now

This commit is contained in:
rich2014 2023-10-14 21:24:10 +08:00
commit f4a5ad5ef0

View file

@ -367,8 +367,10 @@ end;
procedure TKASPathEdit.TextChanged;
begin
Inherited;
// TextChanged is called by user input, "if Modified" is not need
if FAutoComplete then AutoComplete(Text);
if not Modified then
Exit;
if FAutoComplete then
AutoComplete(Text);
end;
{$ENDIF}