Enable telemetry

- Phone back home image downloaded for image popularity research.
  Only in case image comes from our repository (NOT for custom images)
This commit is contained in:
Floris Bos 2020-11-26 22:26:15 +01:00
parent f6a8c4d943
commit 95ce718d41
9 changed files with 111 additions and 9 deletions

View file

@ -261,6 +261,7 @@ ApplicationWindow {
height: parent.height-50
padding: 0
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
property string categorySelected : ""
// background of title
Rectangle {
@ -936,13 +937,16 @@ ApplicationWindow {
else
suboslist.currentIndex = -1
osswipeview.setCurrentIndex(1)
ospopup.categorySelected = d.name
} else if (typeof(d.subitems_url) == "string" && d.subitems_url !== "") {
if (d.subitems_url === "internal://back")
{
osswipeview.setCurrentIndex(0)
ospopup.categorySelected = ""
}
else
{
ospopup.categorySelected = d.name
var suburl = d.subitems_url
if (subosmodel.count>1)
{
@ -994,7 +998,7 @@ ApplicationWindow {
}
}
} else {
imageWriter.setSrc(d.url, d.image_download_size, d.extract_size, typeof(d.extract_sha256) != "undefined" ? d.extract_sha256 : "", typeof(d.contains_multiple_files) != "undefined" ? d.contains_multiple_files : false)
imageWriter.setSrc(d.url, d.image_download_size, d.extract_size, typeof(d.extract_sha256) != "undefined" ? d.extract_sha256 : "", typeof(d.contains_multiple_files) != "undefined" ? d.contains_multiple_files : false, ospopup.categorySelected, d.name)
osbutton.text = d.name
ospopup.close()
if (imageWriter.readyToWrite()) {