|
@@ -3091,12 +3091,6 @@
|
|
|
[self didSelectAll];
|
|
|
}];
|
|
|
|
|
|
- // ITEM DELETE ------------------------------------------------------------------------------------------------------
|
|
|
-
|
|
|
- appDelegate.deleteItem = [[REMenuItem alloc] initWithTitle:NSLocalizedString(@"_delete_selected_files_", nil) subtitle:@"" image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"delete"] multiplier:2 color:[NCBrandColor sharedInstance].icon] highlightedImage:nil action:^(REMenuItem *item) {
|
|
|
- [self deleteFile];
|
|
|
- }];
|
|
|
-
|
|
|
// ITEM MOVE --------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
appDelegate.moveItem = [[REMenuItem alloc] initWithTitle:NSLocalizedString(@"_move_selected_files_", nil) subtitle:@"" image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"move"] multiplier:2 color:[NCBrandColor sharedInstance].icon] highlightedImage:nil action:^(REMenuItem *item) {
|
|
@@ -3114,12 +3108,18 @@
|
|
|
appDelegate.saveItem = [[REMenuItem alloc] initWithTitle:NSLocalizedString(@"_save_selected_files_", nil) subtitle:@"" image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"saveSelectedFiles"] multiplier:2 color:[NCBrandColor sharedInstance].icon] highlightedImage:nil action:^(REMenuItem *item) {
|
|
|
[self saveSelectedFiles];
|
|
|
}];
|
|
|
+
|
|
|
+ // ITEM DELETE ------------------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+ appDelegate.deleteItem = [[REMenuItem alloc] initWithTitle:NSLocalizedString(@"_delete_selected_files_", nil) subtitle:@"" image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"delete"] multiplier:2 color:[NCBrandColor sharedInstance].icon] highlightedImage:nil action:^(REMenuItem *item) {
|
|
|
+ [self deleteFile];
|
|
|
+ }];
|
|
|
|
|
|
// E2EE
|
|
|
if (_metadataFolder.e2eEncrypted) {
|
|
|
- appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.selectAllItem, appDelegate.deleteItem, appDelegate.downloadItem, appDelegate.saveItem]];
|
|
|
+ appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.selectAllItem, appDelegate.downloadItem, appDelegate.saveItem, appDelegate.deleteItem]];
|
|
|
} else {
|
|
|
- appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.selectAllItem, appDelegate.deleteItem, appDelegate.moveItem, appDelegate.downloadItem, appDelegate.saveItem]];
|
|
|
+ appDelegate.reSelectMenu = [[REMenu alloc] initWithItems:@[appDelegate.selectAllItem, appDelegate.moveItem, appDelegate.downloadItem, appDelegate.saveItem, appDelegate.deleteItem]];
|
|
|
}
|
|
|
|
|
|
appDelegate.reSelectMenu.imageOffset = CGSizeMake(5, -1);
|