Commit 2836f637 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

flatpak: Set the real value of the remotes

Default was set true, so we were showing something wrong in case it was
disabled.

BUG: 443455


(cherry picked from commit 41cef10e)
parent e9f3a33f
...@@ -338,6 +338,7 @@ void FlatpakSourcesBackend::addRemote(FlatpakRemote *remote, FlatpakInstallation ...@@ -338,6 +338,7 @@ void FlatpakSourcesBackend::addRemote(FlatpakRemote *remote, FlatpakInstallation
it->setData(remoteUrl.isLocalFile() ? remoteUrl.toLocalFile() : remoteUrl.host(), Qt::ToolTipRole); it->setData(remoteUrl.isLocalFile() ? remoteUrl.toLocalFile() : remoteUrl.host(), Qt::ToolTipRole);
it->setData(remoteUrl, Qt::StatusTipRole); it->setData(remoteUrl, Qt::StatusTipRole);
it->setData(id, IdRole); it->setData(id, IdRole);
it->setCheckState(flatpak_remote_get_disabled(remote) ? Qt::Unchecked : Qt::Checked);
#if FLATPAK_CHECK_VERSION(1, 4, 0) #if FLATPAK_CHECK_VERSION(1, 4, 0)
it->setData(QString::fromUtf8(flatpak_remote_get_icon(remote)), IconUrlRole); it->setData(QString::fromUtf8(flatpak_remote_get_icon(remote)), IconUrlRole);
#endif #endif
......
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