Commit 7879a5b5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

List snap as a source too

CCBUG: 388751
parent 10fab95e
......@@ -24,8 +24,9 @@ import QtQuick.Layouts 1.1
Dialog {
id: newSourceDialog
title: i18n("Specify the new source for %1", source.name)
title: i18n("Specify the new source for %1", displayName)
standardButtons: StandardButton.Ok | StandardButton.Close
property string displayName
property QtObject source
ColumnLayout {
......
......@@ -101,7 +101,7 @@ DiscoverPage {
visible: backendItem.backend
onTriggered: {
var addSourceDialog = dialogComponent.createObject()
var addSourceDialog = dialogComponent.createObject(null, {displayName: backendItem.backend.resourcesBackend.displayName })
addSourceDialog.open()
}
}
......
......@@ -59,6 +59,8 @@ SnapBackend::SnapBackend(QObject* parent)
//make sure we populate the installed resources first
populate(m_client.list(), AbstractResource::Installed);
SourcesModel::global()->addBackend(this);
}
int SnapBackend::updatesCount() const
......
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