mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
use AddressManager, rather than adding a trampoline to hostname in
AddressBarDialog.
This commit is contained in:
parent
87e54482dd
commit
562446e7b8
3 changed files with 1 additions and 6 deletions
|
@ -305,7 +305,7 @@ Window {
|
|||
console.log('domain query failed:', error);
|
||||
return filterChoicesByText();
|
||||
}
|
||||
var here = addressBarDialog.getHost(); // don't show where we are now.
|
||||
var here = AddressManager.hostname; // don't show where we are now.
|
||||
allDomains = domains.filter(function (domain) { return domain.name !== here; });
|
||||
allDomains.sort(function (a, b) { return b.online_users - a.online_users; });
|
||||
// Whittle down suggestions to those that have at least one user, and try to get pictures.
|
||||
|
|
|
@ -40,10 +40,6 @@ AddressBarDialog::AddressBarDialog(QQuickItem* parent) : OffscreenQmlDialog(pare
|
|||
_forwardEnabled = !(DependencyManager::get<AddressManager>()->getForwardStack().isEmpty());
|
||||
}
|
||||
|
||||
QString AddressBarDialog::getHost() const {
|
||||
return DependencyManager::get<AddressManager>()->getHost();
|
||||
}
|
||||
|
||||
void AddressBarDialog::loadAddress(const QString& address) {
|
||||
qDebug() << "Called LoadAddress with address " << address;
|
||||
if (!address.isEmpty()) {
|
||||
|
|
|
@ -34,7 +34,6 @@ protected:
|
|||
void displayAddressOfflineMessage();
|
||||
void displayAddressNotFoundMessage();
|
||||
|
||||
Q_INVOKABLE QString getHost() const;
|
||||
Q_INVOKABLE void loadAddress(const QString& address);
|
||||
Q_INVOKABLE void loadHome();
|
||||
Q_INVOKABLE void loadBack();
|
||||
|
|
Loading…
Reference in a new issue