mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Put current address to location instead of inputfield
This commit is contained in:
parent
9cd2717163
commit
d207dae5b7
1 changed files with 8 additions and 4 deletions
|
@ -38,7 +38,7 @@ StackView {
|
||||||
root.currentItem.focus = true;
|
root.currentItem.focus = true;
|
||||||
root.currentItem.forceActiveFocus();
|
root.currentItem.forceActiveFocus();
|
||||||
fillDestinations();
|
fillDestinations();
|
||||||
updateLocationText();
|
updateLocationText(false);
|
||||||
root.parentChanged.connect(center);
|
root.parentChanged.connect(center);
|
||||||
center();
|
center();
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,8 @@ StackView {
|
||||||
root.push(card);
|
root.push(card);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
addressLine.text = targetString;
|
location.text = targetString;
|
||||||
toggleOrGo(true);
|
toggleOrGo(true, targetString);
|
||||||
clearAddressLineTimer.start();
|
clearAddressLineTimer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -539,7 +539,11 @@ StackView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleOrGo(fromSuggestions) {
|
function toggleOrGo(fromSuggestions, address) {
|
||||||
|
if (address !== undefined && address !== "") {
|
||||||
|
addressBarDialog.loadAddress(address, fromSuggestions)
|
||||||
|
}
|
||||||
|
|
||||||
if (addressLine.text !== "") {
|
if (addressLine.text !== "") {
|
||||||
addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
|
addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue