Feature request: Add an option to open inventory folders in a new separate window
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#include "lluictrlfactory.h"
|
||||
|
||||
#include "lffloaterinvpanel.h"
|
||||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
#include "llagentwearables.h"
|
||||
@@ -2771,6 +2772,14 @@ void LLFolderBridge::performAction(LLInventoryModel* model, std::string action)
|
||||
|
||||
return;
|
||||
}
|
||||
else if ("open_in_new_window" == action)
|
||||
{
|
||||
LLInventoryModel* model = getInventoryModel();
|
||||
LLViewerInventoryCategory* cat = getCategory();
|
||||
if (!model || !cat) return;
|
||||
LFFloaterInvPanel::show(mUUID, model, cat->getName());
|
||||
return;
|
||||
}
|
||||
else if ("paste" == action)
|
||||
{
|
||||
pasteFromClipboard();
|
||||
@@ -3371,6 +3380,8 @@ void LLFolderBridge::buildContextMenuFolderOptions(U32 flags)
|
||||
if (!isAgentInventory()) return;
|
||||
if (isOutboxFolder()) return;
|
||||
|
||||
mItems.push_back(std::string("Open Folder In New Window"));
|
||||
|
||||
LLFolderType::EType type = category->getPreferredType();
|
||||
const bool is_system_folder = LLFolderType::lookupIsProtectedType(type);
|
||||
// calling card related functionality for folders.
|
||||
|
||||
Reference in New Issue
Block a user