Display server URL in multi-server enforced combo box

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-09-19 18:13:18 +08:00 committed by Matthieu Gallien
parent d84ede3ef2
commit 72fe0d8818

View file

@ -63,7 +63,8 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent)
const auto serverObject = serverJson.toObject();
const auto serverName = serverObject.value("name").toString();
const auto serverUrl = serverObject.value("url").toString();
_ui.comboBox->addItem(serverName, serverUrl);
const auto serverDisplayString = QString("%1 (%2)").arg(serverName, serverUrl);
_ui.comboBox->addItem(serverDisplayString, serverUrl);
}
} else if (theme->forceOverrideServerUrl()) {
_ui.comboBox->hide();