From 1a60a6b93c8c5fb1c10f936e16766c218dd9e680 Mon Sep 17 00:00:00 2001 From: Agel Date: Tue, 7 Jul 2026 19:25:28 +0200 Subject: [PATCH] few refactors --- src/qml/Main.qml | 2 +- src/qml/components/SideBar.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/Main.qml b/src/qml/Main.qml index 88d72f7..0a941df 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -203,7 +203,7 @@ ApplicationWindow { target: book function onBookChanged() { if (!book.hasBook && window.currentPage === "reader") - window.currentPage = "starter" + window.currentPage = "history" } } diff --git a/src/qml/components/SideBar.qml b/src/qml/components/SideBar.qml index f52951a..ef435b5 100644 --- a/src/qml/components/SideBar.qml +++ b/src/qml/components/SideBar.qml @@ -55,6 +55,7 @@ Rectangle { width: ThemeManager.sidebarWidth SideBarButton { + visible: book.hasBook iconText: "\ue86d" title: "Book" onClicked: sidebar.navigateTo("reader")