         self.stringdeletesnapshotsdaysnum.delegate = self
         self.selectplan.delegate = self
         self.selectdayofweek.delegate = self
+        self.savebutton.isEnabled = false
         ViewControllerReference.shared.setvcref(viewcontroller: .vcsnapshot, nsviewcontroller: self)
     }
 

        guard configurations.count > 0 else { return }
        if let index = self.index {
            configurations[index].snapdayoffweek = self.config!.snapdayoffweek
            switch self.selectplan.indexOfSelectedItem {
            case 1:
                configurations[index].snaplast = 1
            case 2:
                configurations[index].snaplast = 2
            default:
                configurations[index].snaplast = 0
            }
            // Update configuration in memory before saving
            self.configurations!.updateConfigurations(configurations[index], index: index)
        }

extension ViewControllerSnapshots: NSComboBoxDelegate {
    func comboBoxSelectionDidChange(_ notification: Notification) {
        guard self.config != nil  else { return }
        self.savebutton.isEnabled = true
        switch self.selectdayofweek.indexOfSelectedItem {
        case 0:
            self.config!.snapdayoffweek = StringDayofweek.Sunday.rawValue
