Audit best practice 0.4.8: orientazioni per pagina (reader in landscape), licenza nel pacchetto, EPUB lazy lengths, cover dinamica (ReaderState), flush config senza sync per tasto, pulizia chapterFraction/commenti
This commit is contained in:
@@ -4,6 +4,8 @@ import Sailfish.Silica 1.0
|
||||
Page {
|
||||
id: page
|
||||
|
||||
allowedOrientations: Orientation.Portrait
|
||||
|
||||
property string testResult: ""
|
||||
property bool testOk: false
|
||||
property bool testing: false
|
||||
@@ -171,11 +173,18 @@ Page {
|
||||
if (base.indexOf("http://") !== 0 && base.indexOf("https://") !== 0)
|
||||
base = "https://" + base
|
||||
appSettings.serverUrl = base
|
||||
appSettings.flush() // i campi di testo scrivono senza sync a ogni tasto
|
||||
page.testing = true
|
||||
page.testResult = qsTr("Testing…")
|
||||
apiClient.getFeed(base + "/opds")
|
||||
}
|
||||
|
||||
// uscita dalla pagina: scrivi su disco le modifiche in sospeso
|
||||
onStatusChanged: {
|
||||
if (status === PageStatus.Inactive)
|
||||
appSettings.flush()
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: apiClient
|
||||
onFeedReady: {
|
||||
|
||||
Reference in New Issue
Block a user