few refactors

This commit is contained in:
Agel committed 2026-07-07 19:25:28 +02:00
1 parent 4f7ac82d62
commit 1a60a6b93c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ ApplicationWindow {
target: book target: book
function onBookChanged() { function onBookChanged() {
if (!book.hasBook && window.currentPage === "reader") if (!book.hasBook && window.currentPage === "reader")
window.currentPage = "starter" window.currentPage = "history"
} }
} }
+1
View File
@@ -55,6 +55,7 @@ Rectangle {
width: ThemeManager.sidebarWidth width: ThemeManager.sidebarWidth
SideBarButton { SideBarButton {
visible: book.hasBook
iconText: "\ue86d" iconText: "\ue86d"
title: "Book" title: "Book"
onClicked: sidebar.navigateTo("reader") onClicked: sidebar.navigateTo("reader")