Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Apr 21, 2024
1 parent bbd2a86 commit c8369a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/aichatassistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,9 @@ void AIChatAssistant::slotOptions()
hl->addWidget(lblTemp);
hl->addWidget(leTemp);
ly->addLayout(hl);
auto *lblStream=new QLabel(tr("Stream results"));
auto *cbStream=new QCheckBox();
auto *cbStream=new QCheckBox(tr("Stream results"));
cbStream->setChecked(config->ai_streamResults);
auto *hl2=new QHBoxLayout();
hl2->addWidget(lblStream);
hl2->addWidget(cbStream);
ly->addLayout(hl2);
ly->addWidget(cbStream);

auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok
| QDialogButtonBox::Cancel);
Expand Down

0 comments on commit c8369a0

Please sign in to comment.