Skip to content

Commit db21896

Browse files
committed
bk/2024-06-14-1106
1 parent 263c1a8 commit db21896

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

Src/Chat/DelphiCopilot.Chat.View.dfm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
7676
ParentFont = False
7777
ParentShowHint = False
7878
PopupMenu = PopupMenu1
79-
ScrollBars = ssVertical
79+
ScrollBars = ssBoth
8080
ShowHint = True
8181
TabOrder = 1
8282
Zoom = 100
83-
ExplicitHeight = 505
8483
end
8584
object pnBackQuestion: TPanel
8685
Left = 18
@@ -96,7 +95,6 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
9695
Padding.Top = 5
9796
ParentBackground = False
9897
TabOrder = 0
99-
ExplicitTop = 526
10098
object mmQuestion: TMemo
10199
AlignWithMargins = True
102100
Left = 0
@@ -150,7 +148,6 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
150148
Caption = 'lbCurrentAI'
151149
PopupMenu = pMenuCurrentAI
152150
OnClick = lbCurrentAIClick
153-
ExplicitTop = 1
154151
ExplicitHeight = 13
155152
end
156153
object btnSend: TButton
@@ -168,8 +165,6 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
168165
Caption = 'Send'
169166
TabOrder = 0
170167
OnClick = btnSendClick
171-
ExplicitTop = 1
172-
ExplicitHeight = 19
173168
end
174169
end
175170
end

Src/Chat/DelphiCopilot.Chat.View.pas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,15 +497,15 @@ procedure TDelphiCopilotChatView.pMenuCurrentAIPopup(Sender: TObject);
497497
end;
498498

499499
procedure TDelphiCopilotChatView.ConfLabelCurrentAI;
500-
var
501-
LModel: string;
502500
begin
501+
lbCurrentAI.Caption := FSettings.AIDefault.ToString;
502+
503503
case FSettings.AIDefault of
504-
TAIsAvailable.Gemini: LModel := FSettings.ModelGemini;
505-
TAIsAvailable.OpenAI: LModel := FSettings.ModelOpenAI;
504+
TAIsAvailable.Gemini:
505+
lbCurrentAI.Hint := FSettings.ModelGemini;
506+
TAIsAvailable.OpenAI:
507+
lbCurrentAI.Hint := FSettings.ModelOpenAI;
506508
end;
507-
508-
lbCurrentAI.Caption := FSettings.AIDefault.ToString + ' / ' + LModel;
509509
end;
510510

511511
procedure TDelphiCopilotChatView.Gemini1Click(Sender: TObject);

Src/Test/Test.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ interface
44

55
implementation
66

7+
8+
79
end.

0 commit comments

Comments
 (0)