From ba1872e57106c7a27a0f73453ace499f42c48345 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Tue, 28 Feb 2023 02:32:23 +0200 Subject: =?UTF-8?q?SL-19271=20Remove=20=E2=80=98New=20folder=20window?= =?UTF-8?q?=E2=80=99,=20=E2=80=98Open=20in=20new=20window=E2=80=99=20and?= =?UTF-8?q?=20=E2=80=98Open=E2=80=99=20from=20Gear=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- indra/newview/llpanelmaininventory.cpp | 34 +--------------------- indra/newview/llviewermenu.cpp | 1 - .../default/xui/en/menu_inventory_gear_default.xml | 31 -------------------- indra/newview/skins/default/xui/en/menu_viewer.xml | 9 ------ 4 files changed, 1 insertion(+), 74 deletions(-) diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 5da53cc928..9bfea7fe2b 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -1373,27 +1373,7 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata) return; const std::string command_name = userdata.asString(); - if (command_name == "new_single_folder_window") - { - newFolderWindow(); - } - if ((command_name == "open_in_current_window") || (command_name == "open_in_new_window")) - { - LLFolderViewItem* current_item = getActivePanel()->getRootFolder()->getCurSelectedItem(); - if (!current_item) - { - return; - } - const LLUUID& folder_id = static_cast(current_item->getViewModelItem())->getUUID(); - if((command_name == "open_in_current_window")) - { - mSingleFolderPanelInventory->changeFolderRoot(folder_id); - } - if((command_name == "open_in_new_window")) - { - newFolderWindow(folder_id); - } - } + if (command_name == "new_window") { newWindow(); @@ -1660,19 +1640,7 @@ bool LLPanelMainInventory::isActionVisible(const LLSD& userdata) { return !mSingleFolderMode; } - if (param_str == "open_folder" || param_str == "open_new_folder") - { - if (!mSingleFolderMode && (param_str == "open_folder")) return false; - - LLFolderView* root = getActivePanel()->getRootFolder(); - std::set selection_set = root->getSelectionList(); - if (selection_set.size() != 1) return false; - LLFolderViewItem* current_item = *selection_set.begin(); - if (!current_item) return false; - const LLUUID& folder_id = static_cast(current_item->getViewModelItem())->getUUID(); - return (gInventory.getCategory(folder_id) != NULL); - } return true; } diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 19930e0e03..015a887e9f 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9703,7 +9703,6 @@ void initialize_menus() commit.add("PayObject", boost::bind(&handle_give_money_dialog)); commit.add("Inventory.NewWindow", boost::bind(&LLPanelMainInventory::newWindow)); - commit.add("Inventory.NewFolderWindow", boost::bind(&LLPanelMainInventory::newFolderWindow, LLUUID(), LLUUID())); enable.add("EnablePayObject", boost::bind(&enable_pay_object)); enable.add("EnablePayAvatar", boost::bind(&enable_pay_avatar)); diff --git a/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml b/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml index f778742ed9..d2bd33a44c 100644 --- a/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml +++ b/indra/newview/skins/default/xui/en/menu_inventory_gear_default.xml @@ -6,37 +6,6 @@ mouse_opaque="false" name="menu_gear_default" visible="false"> - - - - - - - - - - - - - -