|
@@ -2713,8 +2713,8 @@ extension KMMainViewController {
|
|
|
self?.toolbarController.cancelSelected(KMToolbarToolCompressItemIdentifier)
|
|
|
|
|
|
let batchWindowController = KMBatchOperateWindowController.sharedWindowController
|
|
|
- batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
- let batchOperateFile = KMBatchOperateFile(filePath: filePaths.first!.path)
|
|
|
+// batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
+ let batchOperateFile = KMBatchOperateFile(filePath: filePaths.first!.path, type: .Compress)
|
|
|
batchWindowController.switchToOperateType(KMBatchOperationType.Compress, files: [batchOperateFile])
|
|
|
batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
}
|
|
@@ -4508,11 +4508,11 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
|
|
|
|
func showBatchWindow(type: KMBatchOperationType, files: [KMFileAttribute]?) {
|
|
|
let batchWindowController = KMBatchOperateWindowController.sharedWindowController
|
|
|
- batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
+// batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
|
|
|
var array: [KMBatchOperateFile] = []
|
|
|
for file in files! {
|
|
|
- let batchOperateFile = KMBatchOperateFile(filePath: file.filePath)
|
|
|
+ let batchOperateFile = KMBatchOperateFile(filePath: file.filePath, type: type)
|
|
|
array.append(batchOperateFile)
|
|
|
}
|
|
|
batchWindowController.switchToOperateType(type, files: array)
|