|
@@ -101,8 +101,14 @@ class KMMergeTableViewCell: NSTableCellView {
|
|
|
callBack(self, fileModel)
|
|
|
}
|
|
|
|
|
|
- @IBAction func comboBoxAction(_ sender: Any) {
|
|
|
+ @IBAction func comboBoxAction(_ sender: NSComboBoxCell) {
|
|
|
+ guard let fileModel = fileModel else { return }
|
|
|
+ let type = KMPageRange.init(rawValue: sender.indexOfSelectedItem) ?? .all
|
|
|
+ fileModel.pagesType = type
|
|
|
|
|
|
+ if type == .custom {
|
|
|
+ fileModel.pagesString = sender.stringValue
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|