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

Do not register a unique application when we call with --feedback

This way it will not affect running instances.
parent 72706124
Pipeline #125321 passed with stage
in 1 minute and 47 seconds
......@@ -231,7 +231,10 @@ QString FlatpakResource::installedVersion() const
}
if (auto ref = qobject_cast<FlatpakBackend *>(backend())->getInstalledRefForApp(this)) {
return i18nc("version (branch)", "%1 (%2)", flatpak_installed_ref_get_appdata_version(ref), version);
const char *appdataVersion = flatpak_installed_ref_get_appdata_version(ref);
if (appdataVersion) {
return i18nc("version (branch)", "%1 (%2)", appdataVersion, version);
}
}
return version;
}
......
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