Expand profile editor for SSH auth and host policy fields

This commit is contained in:
Keith Smith
2026-03-01 09:37:37 -07:00
parent 6a4bcb75eb
commit 71a2f2e868
3 changed files with 83 additions and 4 deletions

View File

@@ -119,12 +119,13 @@ void ProfilesWindow::loadProfiles(const QString& query)
for (const Profile& profile : profiles) {
auto* item = new QListWidgetItem(formatProfileListItem(profile), m_profilesList);
item->setData(Qt::UserRole, QVariant::fromValue(profile.id));
item->setToolTip(QStringLiteral("%1://%2@%3:%4\nAuth: %5")
item->setToolTip(QStringLiteral("%1://%2@%3:%4\nAuth: %5\nKnown Hosts: %6")
.arg(profile.protocol,
profile.username.isEmpty() ? QStringLiteral("<none>") : profile.username,
profile.host,
QString::number(profile.port),
profile.authMode));
profile.authMode,
profile.knownHostsPolicy));
m_profileCache.insert_or_assign(profile.id, profile);
}
}