Commit 6a8aeef3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: Specify when a source is user-local

A user might have added a repository twice both on the system and the
user deployments. This means that they'll be listed two seemingly equal
repositories and feel the world is melting.
This adds (user) at the end when it's a user-specific installation
(which generally are less common) so that they can be differentiated.

BUG: 436143
parent 98891a1b
......@@ -326,7 +326,11 @@ void FlatpakSourcesBackend::addRemote(FlatpakRemote *remote, FlatpakInstallation
FlatpakSourceItem *it = new FlatpakSourceItem(!title.isEmpty() ? title : id);
QString label = !title.isEmpty() ? title : id;
if (flatpak_installation_get_is_user(installation)) {
label = i18n("%1 (user)", label);
FlatpakSourceItem *it = new FlatpakSourceItem(label);
it->setData(remoteUrl.isLocalFile() ? remoteUrl.toLocalFile() :, Qt::ToolTipRole);
it->setData(remoteUrl, Qt::StatusTipRole);
it->setData(id, IdRole);
Supports Markdown
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