marinofaggiana 5 年之前
父節點
當前提交
f229f0d9d4
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      iOSClient/Scan/ScanCollectionView.swift

+ 7 - 0
iOSClient/Scan/ScanCollectionView.swift

@@ -148,6 +148,13 @@ class DragDropViewController: UIViewController {
             }
         }
         
+        // Save button
+        if imagesDestination.count == 0 {
+            save.isEnabled = false
+        } else {
+            save.isEnabled = true
+        }
+        
         collectionViewDestination.reloadData()
     }