mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Change default destination of deleted items to the trash folder. Everything
else still goes to L&F
This commit is contained in:
@@ -1722,10 +1722,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (folderID == UUID.Zero && folder == null)
|
||||
{
|
||||
// Catch all. Use lost & found
|
||||
//
|
||||
if (action == DeRezAction.Delete)
|
||||
{
|
||||
// Deletes go to trash by default
|
||||
//
|
||||
folder = InventoryService.GetFolderForType(userID, AssetType.TrashFolder);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Catch all. Use lost & found
|
||||
//
|
||||
|
||||
folder = InventoryService.GetFolderForType(userID, AssetType.LostAndFoundFolder);
|
||||
folder = InventoryService.GetFolderForType(userID, AssetType.LostAndFoundFolder);
|
||||
}
|
||||
}
|
||||
|
||||
if (folder == null) // None of the above
|
||||
|
||||
Reference in New Issue
Block a user