fix: Found and fix review mistakes

This commit is contained in:
Petr Mironychev
2026-07-02 22:26:07 +02:00
parent c070d65366
commit 35bbaa1af0
139 changed files with 2032 additions and 1573 deletions

View File

@@ -24,10 +24,7 @@
namespace QodeAssist::Settings {
AgentModelDialog::AgentModelDialog(
AgentFactory *factory,
const QString &agentName,
const QString &currentModel,
QWidget *parent)
AgentFactory *factory, const QString &agentName, const QString &currentModel, 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