Remove Show in Main View menu option from standalone folder inventory views, since there is no main view in these

master
Zi Ree 2022-10-09 17:23:14 +02:00
parent 47c106f9dd
commit 7c29d1fb34
1 changed files with 5 additions and 1 deletions

View File

@ -982,7 +982,11 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id,
// </FS>
LLInventoryPanel *active_panel = LLInventoryPanel::getActiveInventoryPanel(FALSE);
if (active_panel && (active_panel->getName() != "All Items"))
// <FS:Zi> Don't offer "Show in Main View" for folders opened in separate inventory views
// as there are no tabs to switch to
// if (active_panel && (active_panel->getName() != "All Items"))
if (active_panel && (active_panel->getName() != "All Items") && (active_panel->getName() != "inv_panel"))
// </FS:Zi>
{
items.push_back(std::string("Show in Main Panel"));
}