From 40fa34a0d220f648acc6e92a394aef50b9f75286 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 12 Aug 2026 10:53:06 +0200 Subject: [PATCH] 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 --- qml/pages/BookDetailPage.qml | 6 +++--- qml/pages/SettingsPage.qml | 12 ++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/qml/pages/BookDetailPage.qml b/qml/pages/BookDetailPage.qml index ba9225c..23cf451 100644 --- a/qml/pages/BookDetailPage.qml +++ b/qml/pages/BookDetailPage.qml @@ -105,8 +105,8 @@ Page { } } - Toast { - id: toast + Notices { + id: notices } function formatSize(bytes) { @@ -167,7 +167,7 @@ Page { page.downloading = false if (ok) { page.downloadError = "" - toast.show("Salvato in " + path) + notices.show("Salvato in " + path) } else { page.downloadError = "Errore: " + error } diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index 35cab1e..c90d302 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -46,21 +46,13 @@ Page { onTextChanged: appSettings.password = text } - Switch { + TextSwitch { text: "Ignora errori certificato SSL" + description: "Da attivare se il server usa un certificato autofirmato" checked: appSettings.ignoreSslErrors 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" } Button {