mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +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.forceActiveFocus();
|
||||
fillDestinations();
|
||||
updateLocationText();
|
||||
updateLocationText(false);
|
||||
root.parentChanged.connect(center);
|
||||
center();
|
||||
}
|
||||
|
@ -62,8 +62,8 @@ StackView {
|
|||
root.push(card);
|
||||
return;
|
||||
}
|
||||
addressLine.text = targetString;
|
||||
toggleOrGo(true);
|
||||
location.text = targetString;
|
||||
toggleOrGo(true, targetString);
|
||||
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 !== "") {
|
||||
addressBarDialog.loadAddress(addressLine.text, fromSuggestions)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue