mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +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
|
||||
HiFiGlyphs {
|
||||
id: back;
|
||||
enabled: currentPage > 0
|
||||
enabled: currentPage >= 0
|
||||
text: hifi.glyphs.backward
|
||||
color: enabled ? hifistyles.colors.text : hifistyles.colors.disabledText
|
||||
size: 48
|
||||
|
@ -107,6 +107,8 @@ Item {
|
|||
function goBack() {
|
||||
if (currentPage > 0) {
|
||||
currentPage--;
|
||||
} else if (parentStackItem) {
|
||||
parentStackItem.pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue