mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-07 13:39:11 -04:00
fix: Found and fix review mistakes
This commit is contained in:
@@ -24,10 +24,7 @@
|
||||
namespace QodeAssist::Settings {
|
||||
|
||||
AgentModelDialog::AgentModelDialog(
|
||||
AgentFactory *factory,
|
||||
const QString &agentName,
|
||||
const QString ¤tModel,
|
||||
QWidget *parent)
|
||||
AgentFactory *factory, const QString &agentName, const QString ¤tModel, QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, m_factory(factory)
|
||||
, m_agentName(agentName)
|
||||
@@ -103,8 +100,9 @@ void AgentModelDialog::fetchModels()
|
||||
|
||||
if (!m_watcher) {
|
||||
m_watcher = new QFutureWatcher<QList<QString>>(this);
|
||||
connect(m_watcher, &QFutureWatcher<QList<QString>>::finished, this,
|
||||
[this] { onModelsFetched(); });
|
||||
connect(m_watcher, &QFutureWatcher<QList<QString>>::finished, this, [this] {
|
||||
onModelsFetched();
|
||||
});
|
||||
}
|
||||
|
||||
m_fetchBtn->setEnabled(false);
|
||||
@@ -134,9 +132,8 @@ void AgentModelDialog::onModelsFetched()
|
||||
m_modelEdit->setText(keep);
|
||||
|
||||
m_status->setText(
|
||||
models.isEmpty()
|
||||
? tr("No models returned — type the model name manually.")
|
||||
: tr("%n model(s) available.", nullptr, static_cast<int>(models.size())));
|
||||
models.isEmpty() ? tr("No models returned — type the model name manually.")
|
||||
: tr("%n model(s) available.", nullptr, static_cast<int>(models.size())));
|
||||
}
|
||||
|
||||
} // namespace QodeAssist::Settings
|
||||
|
||||
Reference in New Issue
Block a user