         }
     }
 
+    private func checkforfullrestore() -> Bool {
+        if let index = self.index {
+            guard self.connected(config: self.configurations!.getConfigurations()[index]) == true else {
+                self.info.stringValue = Inforestore().info(num: 4)
+                self.info.textColor = self.setcolor(nsviewcontroller: self, color: .red)
+                self.info.isHidden = false
+                return false
+            }
+            guard self.configurations!.getConfigurations()[index].task != ViewControllerReference.shared.syncremote else {
+                self.info.stringValue = Inforestore().info(num: 5)
+                self.info.textColor = self.setcolor(nsviewcontroller: self, color: .red)
+                self.info.isHidden = false
+                return false
+            }
+        }
+        return true
+    }
+
     func executefullrestore() {
-        guard self.checkforrsync() == false else { return }
-        guard self.checkforfullrestore() == true else { return }
         let question: String = NSLocalizedString("Do you REALLY want to start a restore?", comment: "Restore")
         let text: String = NSLocalizedString("Cancel or Restore", comment: "Restore")
         let dialog: String = NSLocalizedString("Restore", comment: "Restore")

        self.diddissappear = true
    }

    // Restore files
    func executerestorefiles() {
        // guard self.checkforrestorefiles() == true else { return }
        globalMainQueue.async { () -> Void in
            self.presentAsSheet(self.viewControllerProgress!)
        }


    @IBAction func estimate(_: NSButton) {
        if self.fullrestoreradiobutton.state == .on {
            self.estimatefullrestore()
        } else {
            self.estimaterestorefiles()
        }
