Qml app fix sidebar buttons hiding behaviour

This commit is contained in:
Gioacchino Mazzurco 2018-02-01 14:42:46 +01:00
parent 1c698bff83
commit 2d00532e00

View File

@ -153,7 +153,7 @@ Drawer
Component.onCompleted: Component.onCompleted:
{ {
if (model.showOnOsAndroid && !Q_OS_ANDROID) if (!model.showOnOsAndroid && Q_OS_ANDROID)
{ {
menuItem.visible = false menuItem.visible = false
menuItem.height = 0 menuItem.height = 0
@ -251,7 +251,8 @@ Drawer
ListElement ListElement
{ {
title: "Options" title: "Options"
showOnOsAndroid: false showOnCoreReady: true
showOnOsAndroid: true
icon: "/icons/options.svg" icon: "/icons/options.svg"
} }
ListElement ListElement