Fix API Silica: TextSwitch al posto di Switch (label), Notices al posto di Toast (non esiste in Silica). Tutti i componenti verificati contro la doc ufficiale
This commit is contained in:
@@ -105,8 +105,8 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Toast {
|
Notices {
|
||||||
id: toast
|
id: notices
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatSize(bytes) {
|
function formatSize(bytes) {
|
||||||
@@ -167,7 +167,7 @@ Page {
|
|||||||
page.downloading = false
|
page.downloading = false
|
||||||
if (ok) {
|
if (ok) {
|
||||||
page.downloadError = ""
|
page.downloadError = ""
|
||||||
toast.show("Salvato in " + path)
|
notices.show("Salvato in " + path)
|
||||||
} else {
|
} else {
|
||||||
page.downloadError = "Errore: " + error
|
page.downloadError = "Errore: " + error
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,21 +46,13 @@ Page {
|
|||||||
onTextChanged: appSettings.password = text
|
onTextChanged: appSettings.password = text
|
||||||
}
|
}
|
||||||
|
|
||||||
Switch {
|
TextSwitch {
|
||||||
text: "Ignora errori certificato SSL"
|
text: "Ignora errori certificato SSL"
|
||||||
|
description: "Da attivare se il server usa un certificato autofirmato"
|
||||||
checked: appSettings.ignoreSslErrors
|
checked: appSettings.ignoreSslErrors
|
||||||
onCheckedChanged: appSettings.ignoreSslErrors = checked
|
onCheckedChanged: appSettings.ignoreSslErrors = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
|
||||||
x: Theme.horizontalPageMargin
|
|
||||||
width: parent.width - 2 * Theme.horizontalPageMargin
|
|
||||||
text: "Da attivare se il server usa un certificato autofirmato"
|
|
||||||
color: Theme.secondaryColor
|
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
|
||||||
wrapMode: Text.Wrap
|
|
||||||
}
|
|
||||||
|
|
||||||
SectionHeader { text: "Connessione" }
|
SectionHeader { text: "Connessione" }
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
|||||||
Reference in New Issue
Block a user