Feature(custom): optimize scripts for gallery item delete

This commit is contained in:
Kuingsmile
2026-01-26 20:47:18 +08:00
parent 9c8698907e
commit 0145ce2aa7
10 changed files with 13 additions and 11 deletions

View File

@@ -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)