(operation, modIDS, multiSource = null, fileList = null, zipImport = false)
| 145 | } |
| 146 | |
| 147 | function getCopyMoveDelete(operation, modIDS, multiSource = null, fileList = null, zipImport = false) { |
| 148 | if ( modIDS === null || modIDS.length !== 0 ) { |
| 149 | const isHolding = modIDS !== null ? serveIPC.storeNote.get(`${modIDS[0].split('--')[0]}.notes_holding`, false) : false |
| 150 | return { |
| 151 | isHoldingPen : isHolding, |
| 152 | isZipImport : zipImport === false ? false : zipImport[0], |
| 153 | multiDestination : isHolding && ( operation === 'copy' || operation === 'move' ), |
| 154 | multiSource : multiSource, |
| 155 | operation : operation, |
| 156 | originCollectKey : modIDS !== null ? modIDS[0].split('--')[0] : '', |
| 157 | rawFileList : fileList, |
| 158 | records : modIDS !== null ? serveIPC.modCollect.modColUUIDsToRecords(modIDS) : [], |
| 159 | zipFiles : zipImport === false || zipImport[0] === false ? null : zipImport[1], |
| 160 | } |
| 161 | } |
| 162 | return null |
| 163 | } |
| 164 | |
| 165 | // MARK: folder manage |
| 166 | ipcMain.handle('folders:activate', async (_, CKey) => funcLib.gameSet.change(CKey) ) |
no test coverage detected