From cbe41538811a30807525fb9c2c9056716337ff72 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Wed, 12 Aug 2026 17:15:46 +0200 Subject: [PATCH] =?UTF-8?q?ReaderPage:=20ricarica=20il=20capitolo=20al=20r?= =?UTF-8?q?itorno=20sulla=20pagina=20(Active)=20=E2=80=94=20margini=20e=20?= =?UTF-8?q?font=20cambiati=20nelle=20impostazioni=20si=20applicano=20subit?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/pages/ReaderPage.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qml/pages/ReaderPage.qml b/qml/pages/ReaderPage.qml index 9e47afc..b214618 100644 --- a/qml/pages/ReaderPage.qml +++ b/qml/pages/ReaderPage.qml @@ -267,7 +267,13 @@ Page { } onStatusChanged: { - if (status === PageStatus.Inactive) + if (status === PageStatus.Inactive) { maybeSave(true) + } else if (status === PageStatus.Active) { + // riapplica font/margini se cambiati nelle impostazioni: + // ricarica il capitolo e ripristina la posizione + if (page.ready && book.chapterCount() > 0) + loadChapter() + } } }