mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
sending user to saved address if logged in
This commit is contained in:
parent
9beedf9292
commit
c8071e81b1
2 changed files with 3 additions and 9 deletions
|
@ -59,6 +59,7 @@ Item {
|
|||
running: false;
|
||||
repeat: false;
|
||||
onTriggered: {
|
||||
loginDialog.dismissLoginDialog();
|
||||
root.tryDestroy();
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +103,6 @@ Item {
|
|||
loggingInText.text = "You are now logged in!";
|
||||
}
|
||||
successTimer.start();
|
||||
loginDialog.dismissLoginDialog();
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
@ -5231,13 +5231,9 @@ void Application::pauseUntilLoginDetermined() {
|
|||
nodeList->getDomainHandler().disconnect();
|
||||
auto menu = Menu::getInstance();
|
||||
menu->getMenu("Edit")->setVisible(false);
|
||||
menu->getMenu("Edit")->setEnabled(false);
|
||||
menu->getMenu("View")->setVisible(false);
|
||||
menu->getMenu("View")->setEnabled(false);
|
||||
menu->getMenu("Navigate")->setVisible(false);
|
||||
menu->getMenu("Navigate")->setEnabled(false);
|
||||
menu->getMenu("Settings")->setVisible(false);
|
||||
menu->getMenu("Settings")->setEnabled(false);
|
||||
}
|
||||
|
||||
void Application::resumeAfterLoginDialogActionTaken() {
|
||||
|
@ -5273,6 +5269,8 @@ void Application::resumeAfterLoginDialogActionTaken() {
|
|||
auto addressManager = DependencyManager::get<AddressManager>();
|
||||
if (!accountManager->isLoggedIn()) {
|
||||
addressManager->goToEntry();
|
||||
} else {
|
||||
addressManager->loadSettings();
|
||||
}
|
||||
|
||||
const auto& nodeList = DependencyManager::get<NodeList>();
|
||||
|
@ -5282,13 +5280,9 @@ void Application::resumeAfterLoginDialogActionTaken() {
|
|||
|
||||
auto menu = Menu::getInstance();
|
||||
menu->getMenu("Edit")->setVisible(true);
|
||||
menu->getMenu("Edit")->setEnabled(true);
|
||||
menu->getMenu("View")->setVisible(true);
|
||||
menu->getMenu("View")->setEnabled(true);
|
||||
menu->getMenu("Navigate")->setVisible(true);
|
||||
menu->getMenu("Navigate")->setEnabled(true);
|
||||
menu->getMenu("Settings")->setVisible(true);
|
||||
menu->getMenu("Settings")->setEnabled(true);
|
||||
}
|
||||
|
||||
void Application::loadAvatarScripts(const QVector<QString>& urls) {
|
||||
|
|
Loading…
Reference in a new issue