mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:10:25 +02:00
Merge pull request #10192 from druiz17/tablet-webview-fix
webview go back to previous page fix
This commit is contained in:
commit
f555ae253f
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,7 @@ Item {
|
||||||
anchors.leftMargin: 8
|
anchors.leftMargin: 8
|
||||||
HiFiGlyphs {
|
HiFiGlyphs {
|
||||||
id: back;
|
id: back;
|
||||||
enabled: currentPage > 0
|
enabled: currentPage >= 0
|
||||||
text: hifi.glyphs.backward
|
text: hifi.glyphs.backward
|
||||||
color: enabled ? hifistyles.colors.text : hifistyles.colors.disabledText
|
color: enabled ? hifistyles.colors.text : hifistyles.colors.disabledText
|
||||||
size: 48
|
size: 48
|
||||||
|
@ -107,6 +107,8 @@ Item {
|
||||||
function goBack() {
|
function goBack() {
|
||||||
if (currentPage > 0) {
|
if (currentPage > 0) {
|
||||||
currentPage--;
|
currentPage--;
|
||||||
|
} else if (parentStackItem) {
|
||||||
|
parentStackItem.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue