Fix MS16003: In PAL/GoTo WebView, 'BACK' closes app when you can't go back

This commit is contained in:
Zach Fox 2018-08-21 10:20:51 -07:00
parent acc7d493ec
commit a378435683

View file

@ -52,12 +52,18 @@ Item {
id: back
enabledColor: hifi.colors.darkGray
disabledColor: hifi.colors.lightGrayText
enabled: historyIndex > 0
enabled: true
text: "BACK"
MouseArea {
anchors.fill: parent
onClicked: goBack()
onClicked: {
if (historyIndex > 0) {
goBack();
} else {
closeWebEngine();
}
}
}
}