mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 06:50:04 +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"));
|
DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"));
|
||||||
tablet->loadQMLSource("hifi/commerce/wallet/Wallet.qml");
|
tablet->loadQMLSource("hifi/commerce/wallet/Wallet.qml");
|
||||||
DependencyManager::get<HMDScriptingInterface>()->openTablet();
|
DependencyManager::get<HMDScriptingInterface>()->openTablet();
|
||||||
|
tablet->getTabletRoot()->forceActiveFocus();
|
||||||
auto name = getProjectName();
|
auto name = getProjectName();
|
||||||
|
|
||||||
// I'm not a fan of this, but it's the only current option.
|
// 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]() {
|
QTimer::singleShot(TIME_TO_WAIT_FOR_INVENTORY_TO_OPEN_MS, [name, tablet]() {
|
||||||
tablet->sendToQml(QVariantMap({ { "method", "updatePurchases" }, { "filterText", name } }));
|
tablet->sendToQml(QVariantMap({ { "method", "updatePurchases" }, { "filterText", name } }));
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue