From f38a469e659db7a96a9864a1e2052549c4b92891 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 4 Jan 2019 09:55:21 -0800 Subject: [PATCH] Update avatar packager to force focus on inventory when opened --- interface/src/avatar/AvatarProject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/avatar/AvatarProject.cpp b/interface/src/avatar/AvatarProject.cpp index 34da80587b..20556ce5ed 100644 --- a/interface/src/avatar/AvatarProject.cpp +++ b/interface/src/avatar/AvatarProject.cpp @@ -250,10 +250,12 @@ void AvatarProject::openInInventory() { DependencyManager::get()->getTablet("com.highfidelity.interface.tablet.system")); tablet->loadQMLSource("hifi/commerce/wallet/Wallet.qml"); DependencyManager::get()->openTablet(); + tablet->getTabletRoot()->forceActiveFocus(); auto name = getProjectName(); // I'm not a fan of this, but it's the only current option. QTimer::singleShot(TIME_TO_WAIT_FOR_INVENTORY_TO_OPEN_MS, [name, tablet]() { tablet->sendToQml(QVariantMap({ { "method", "updatePurchases" }, { "filterText", name } })); + }); }