mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
Display server URL in multi-server enforced combo box
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
d84ede3ef2
commit
72fe0d8818
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue