TagSpaces is an offline, open source, document manager with tagging support
showing splash window only for PDF tmb generation
Ilian Sapundshiev4fa636c4016f
diff --git a/app/splash-worker.js b/app/splash-worker.jsindex 95f8fb0d0..329d375f4 100644--- a/app/splash-worker.js+++ b/app/splash-worker.js@@ -83,10 +83,17 @@ function init() {}isGeneratingThumbs = true;const tmbGenerationPromises = [];- arg.tmbGenerationList.map(entry => tmbGenerationPromises.push(getThumbnailURLPromise(entry)));- ipcRenderer.send('setSplashVisibility', {- visibility: true,+ let showSplash = false;+ arg.tmbGenerationList.map(entry => {+ showSplash = entry.endsWith('pdf');+ tmbGenerationPromises.push(getThumbnailURLPromise(entry));+ return true;});+ if (showSplash) {+ ipcRenderer.send('setSplashVisibility', {+ visibility: true,+ });+ }Promise.all(tmbGenerationPromises).then(tmbResult => {console.log('tmb results' + JSON.stringify(tmbResult));ipcRenderer.send('setSplashVisibility', {