From 3ca4ebf2d08d2c032c7d1bc5f0785c1dcdc2d620 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:51:47 -0800 Subject: [PATCH] Minor updates --- javascript/gallery.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index 0dcce013f..b15be5cdc 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -929,9 +929,10 @@ async function gallerySort(btn) { /** * Generate and display the overlay to announce cleanup is in progress. * @param {number} count - Number of entries being cleaned up + * @param {boolean} all - Indicate that all thumbnails are being cleared * @returns {ClearMsgCallback} */ -function showCleaningMsg(count) { +function showCleaningMsg(count, all = false) { // Rendering performance isn't a priority since this doesn't run often const parent = el.folders.parentElement; const cleaningOverlay = document.createElement('div'); @@ -946,7 +947,7 @@ function showCleaningMsg(count) { msgText.style.cssText = 'font-size: 1.2em'; msgInfo.style.cssText = 'font-size: 0.9em; text-align: center;'; msgText.innerText = 'Thumbnail cleanup...'; - msgInfo.innerText = `Found ${count} old entries`; + msgInfo.innerText = all ? 'Clearing all entries' : `Found ${count} old entries`; anim.classList.add('idbBusyAnim'); msgDiv.append(msgText, msgInfo); @@ -955,7 +956,7 @@ function showCleaningMsg(count) { return () => { cleaningOverlay.remove(); }; } -const maintenanceQueue = new SimpleFunctionQueue('Maintenance'); +const maintenanceQueue = new SimpleFunctionQueue('Gallery Maintenance'); /** * Handles calling the cleanup function for the thumbnail cache