perf: optimize UI rendering and event lifecycle

This commit is contained in:
Diocrafts
2026-02-18 10:53:43 +01:00
parent f661282962
commit 0d7c8bc019
28 changed files with 1832 additions and 766 deletions
-10
View File
@@ -114,11 +114,6 @@ const favorites = {
);
}
// Refresh view to update star icons
if (window.app && window.app.currentSection === 'files' && typeof window.loadFiles === 'function') {
window.loadFiles();
}
return true;
} catch (error) {
console.error('Error adding to favorites:', error);
@@ -154,11 +149,6 @@ const favorites = {
);
}
// Refresh view to update star icons
if (window.app && window.app.currentSection === 'files' && typeof window.loadFiles === 'function') {
window.loadFiles();
}
return true;
} catch (error) {
console.error('Error removing from favorites:', error);