marinofaggiana 3 жил өмнө
parent
commit
ad33aef81b

+ 9 - 0
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -865,6 +865,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         becomeFirstResponder()
                 
         listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_paste_file_", comment: ""), action: #selector(pasteFilesMenu)))
+        listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_background_", comment: ""), action: #selector(backgroundFilesMenu)))
         
         if listMenuItems.count > 0 {
             UIMenuController.shared.menuItems = listMenuItems
@@ -883,6 +884,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             }
         }
         
+        if (#selector(backgroundFilesMenu) == action) {
+            return true
+        }
+        
         return false
     }
     
@@ -890,6 +895,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         NCFunctionCenter.shared.pastePasteboard(serverUrl: serverUrl)
     }
     
+    @objc func backgroundFilesMenu() {
+       
+    }
+    
     // MARK: - DataSource + NC Endpoint
     
     @objc func reloadDataSource() {

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -174,6 +174,7 @@
 "_source_code_"             = "Get source code";
 "_account_select_"          = "Select the account";
 "_use_as_background"        = "Use it as a background";
+"_background_"              = "Background";
 
 /* User status */
 "_online_"                  = "Online";