From 0b003b8b3287f53fd1ebaca44d30817685b9d916 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Thu, 3 Oct 2024 07:18:19 +0100 Subject: [PATCH] Modified getFiles to exclude *all* hidden files AdjustSpec Dims when first entering Explore mode --- js/ui.js | 3 +-- js/worker.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ui.js b/js/ui.js index 7b1898c1..6df33938 100644 --- a/js/ui.js +++ b/js/ui.js @@ -1859,8 +1859,7 @@ const setUpWorkerMessaging = () => { // change header to indicate activation DOM.resultHeader.classList.remove('text-bg-secondary'); DOM.resultHeader.classList.add('text-bg-dark'); - // PREDICTING = false; - // STATE.analysisDone = true; + adjustSpecDims(true) } else { disableMenuItem(['purge-file']); // change header to indicate deactivation diff --git a/js/worker.js b/js/worker.js index 5294d112..ea87002e 100644 --- a/js/worker.js +++ b/js/worker.js @@ -600,7 +600,7 @@ const getFiles = async (files, image) => { file_list = [...file_list,...dirFiles] } else { const filename = p.basename(path) - filename.startsWith('._') || file_list.push(path) + filename.startsWith('.') || file_list.push(path) // Exclude hidden files } } // filter out unsupported files