1
0

Refactor folder relocation logic in renderer.js

This commit is contained in:
2025-05-25 03:25:10 +02:00
parent 687e6fe3dc
commit baa1f0c779

View File

@@ -528,8 +528,13 @@ folders.forEach(folderObj => {
const selector = `[data-folder-id="${encodeURIComponent(folderObj.path)}"]`;
const li = document.querySelector(selector);
if (li) {
li.classList.toggle('needs-relocation', folderObj.needsRelocation);
// etc.
if (folderObj.needsRelocation) {
li.classList.add('needs-relocation');
// evtl. !-Icon einblenden
} else {
li.classList.remove('needs-relocation');
// evtl. !-Icon ausblenden
}
}
});
});