SL-19796 Fix inventory autoscroll and autoraneme

master
Andrey Kleshchev 2023-06-02 02:47:46 +03:00
parent 87d24252df
commit c813a322fb
1 changed files with 7 additions and 2 deletions

View File

@ -517,8 +517,13 @@ void LLPanelMainInventory::doCreate(const LLSD& userdata)
mForceShowInvLayout = true;
}
LLFolderBridge* bridge = (LLFolderBridge*)current_folder->getViewModelItem();
menu_create_inventory_item(getPanel(), bridge, userdata);
std::function<void(const LLUUID&)> callback_cat_created = [this](const LLUUID& new_category_id)
{
gInventory.notifyObservers();
mCombinationInventoryPanel->setSelectionByID(new_category_id, TRUE);
mCombinationInventoryPanel->getRootFolder()->setNeedsAutoRename(TRUE);
};
menu_create_inventory_item(NULL, getCurrentSFVRoot(), userdata, LLUUID::null, callback_cat_created);
}
}
else