few refactors
This commit is contained in:
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in new issue
Block a user