Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit f8d672d

Browse files
committed
update
1 parent 9cc9b36 commit f8d672d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RsyncOSX/ViewControllerEdit.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class ViewControllerEdit: NSViewController, SetConfigurations, SetDismisser, Ind
6666
if self.snapshotnum.stringValue.count > 0 {
6767
config[self.index!].snapshotnum = Int(self.snapshotnum.stringValue)
6868
}
69+
let dict = ConvertOneConfig(config: config[self.index!]).dict
70+
guard Validatenewconfigs(dict: dict).validated == true else { return }
6971
self.configurations!.updateConfigurations(config[self.index!], index: self.index!)
7072
self.dismissview(viewcontroller: self, vcontroller: .vctabmain)
7173
}

RsyncOSX/ViewControllerNewConfigurations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ class ViewControllerNewConfigurations: NSViewController, SetConfigurations, Dela
261261
}
262262
}
263263
guard Validatenewconfigs(dict: dict).validated == true else { return }
264-
self.configurations!.addNewConfigurations(dict)
264+
self.configurations?.addNewConfigurations(dict)
265265
self.newconfigurations?.appendnewConfigurations(dict: dict)
266-
self.tabledata = self.newconfigurations!.getnewConfigurations()
266+
self.tabledata = self.newconfigurations?.getnewConfigurations()
267267
globalMainQueue.async { () -> Void in
268268
self.addtable.reloadData()
269269
}

0 commit comments

Comments
 (0)