mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-21 07:33:54 +08:00
✨ Feature(custom): optimize scripts for gallery item delete
This commit is contained in:
@@ -278,7 +278,6 @@ async function refreshList() {
|
||||
const fileStats =
|
||||
(await window.electron.triggerRPC<IObj[]>(IRPCActionType.GET_FILES_STAT, getRawData(result), 'scripts')) || []
|
||||
const disabledList = ((await getConfig(configPaths.scripts.disabledList)) as string[] | undefined) || []
|
||||
console.log('disabledList', disabledList)
|
||||
fileStats.forEach(file => {
|
||||
const fullPath = file.filePath.join('/')
|
||||
file.enabled = !disabledList.includes(fullPath)
|
||||
|
||||
Reference in New Issue
Block a user