From a5f469a73fcb711650dbfcdd141c403fe3391aa8 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 12 Aug 2026 15:36:29 +0200 Subject: [PATCH] ReaderPage: dichiarata property ready (era usata ma mai dichiarata = spinner infinito) + PullDownMenu dentro la vista Silica (fix segfault) --- qml/pages/ReaderPage.qml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/qml/pages/ReaderPage.qml b/qml/pages/ReaderPage.qml index 52a8375..45843f0 100644 --- a/qml/pages/ReaderPage.qml +++ b/qml/pages/ReaderPage.qml @@ -12,6 +12,7 @@ Page { property int currentChapter: 0 property double chapterFraction: 0.0 + property bool ready: false property bool restoring: false property int saveCounter: 0 property int syncCounter: 0 @@ -29,6 +30,19 @@ Page { anchors.right: parent.right anchors.bottom: toolbar.top contentHeight: parent.height + + // il PullDownMenu va DENTRO una vista Silica, non a livello di Page + PullDownMenu { + MenuItem { + text: "Indice capitoli" + onClicked: showChapterList() + } + MenuItem { + text: "Aggiorna posizione sul server" + onClicked: syncNow() + } + } + WebView { id: web anchors.fill: parent @@ -132,17 +146,6 @@ Page { } } - PullDownMenu { - MenuItem { - text: "Indice capitoli" - onClicked: showChapterList() - } - MenuItem { - text: "Aggiorna posizione sul server" - onClicked: syncNow() - } - } - // ---- timer di tracciamento ---- Timer { id: trackTimer