Commit 71d06e3c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Flatpak: don't show full url, just the hostname

BUG: 389714
parent 856ff718
......@@ -195,8 +195,8 @@ FlatpakRemote * FlatpakSourcesBackend::installSource(FlatpakResource *resource)
void FlatpakSourcesBackend::addRemote(FlatpakRemote *remote, FlatpakInstallation *installation)
{
const QString id = QString::fromUtf8(flatpak_remote_get_name(remote));
const QString remoteUrl = QString::fromUtf8(flatpak_remote_get_url(remote));
const QString title = i18nc("description (url)", "%1 (%2)", QString::fromUtf8(flatpak_remote_get_title(remote)), remoteUrl);
const QUrl remoteUrl(QString::fromUtf8(flatpak_remote_get_url(remote)));
const QString title = i18nc("description (url)", "%1 (%2)", QString::fromUtf8(flatpak_remote_get_title(remote)), remoteUrl.host());
for(QAction *action: actions()) {
if (action->toolTip() == id) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment