mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #12: Simplify code in Tconnform.ValidateControls
This commit is contained in:
@@ -1265,19 +1265,18 @@ begin
|
||||
|
||||
if SessionFocused then begin
|
||||
// Validate session GUI stuff
|
||||
editHost.RightButton.Visible := False;
|
||||
case Params.NetType of
|
||||
ntMySQL_NamedPipe: begin
|
||||
lblHost.Caption := _('Socket name:');
|
||||
end;
|
||||
ntSQLite: begin
|
||||
lblHost.Caption := _('Database filename')+':';
|
||||
editHost.RightButton.Visible := True;
|
||||
end
|
||||
else begin
|
||||
lblHost.Caption := _('Hostname / IP:');
|
||||
end;
|
||||
end;
|
||||
editHost.RightButton.Visible := Params.IsSQLite;
|
||||
chkWindowsAuth.Enabled := Params.IsMSSQL;
|
||||
chkCleartextPluginEnabled.Enabled := Params.IsMySQL;
|
||||
lblUsername.Enabled := ((not chkLoginPrompt.Checked) or (not chkLoginPrompt.Enabled))
|
||||
|
||||
Reference in New Issue
Block a user