[app] Removed references to non-existent menu item
This commit is contained in:
parent
c90983070c
commit
4dbe01fed0
1 changed files with 0 additions and 10 deletions
|
@ -56,16 +56,6 @@ SilicaFlickable {
|
||||||
text: qsTrId("book-view-back")
|
text: qsTrId("book-view-back")
|
||||||
onClicked: root.closeBook()
|
onClicked: root.closeBook()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove disabled items from the menu when we have a chance
|
|
||||||
onActiveChanged: if (!active) hideDisabledItems()
|
|
||||||
Component.onCompleted: hideDisabledItems()
|
|
||||||
|
|
||||||
function hideDisabledItems() {
|
|
||||||
defaultFontMenuItem.visible = defaultFontMenuItem.enabled
|
|
||||||
smallerFontMenuItem.visible = smallerFontMenuItem.enabled
|
|
||||||
largerFontMenuItem.visible = largerFontMenuItem.enabled
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|
Loading…
Reference in a new issue