mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 15:23:56 +02:00
Update avatar packager to force focus on inventory when opened
This commit is contained in:
parent
c2ceeb3d76
commit
f38a469e65
1 changed files with 2 additions and 0 deletions
|
@ -250,10 +250,12 @@ void AvatarProject::openInInventory() {
|
|||
DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"));
|
||||
tablet->loadQMLSource("hifi/commerce/wallet/Wallet.qml");
|
||||
DependencyManager::get<HMDScriptingInterface>()->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 } }));
|
||||
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue