diff --git a/resources/report/js/script.js b/resources/report/js/script.js index b4f13a11..047ea07c 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -683,8 +683,8 @@ function changeGame(evt) { function openReadme(evt) { loot.query('openReadme').catch(processCefError); } -function updateMasterlist(evt) { - showProgress('Updating masterlist...'); +/* Masterlist update process, minus progress dialog. */ +function updateMasterlistNoProgress() { return loot.query('updateMasterlist').then(JSON.parse).then(function(result){ if (result) { /* Update JS variables. */ @@ -705,9 +705,14 @@ function updateMasterlist(evt) { } }); } - closeProgressDialog(); }).catch(processCefError); } +function updateMasterlist(evt) { + showProgress('Updating masterlist...'); + updateMasterlistNoProgress().then(function(result){ + closeProgressDialog(); + }); +} function sortUIElements(pluginNames) { /* pluginNames is an array of plugin names in their sorted order. Rearrange the plugin cards and nav entries to match it. */ @@ -788,7 +793,7 @@ function sortPlugins(evt) { loot.pauseAutoRefresh = true; var mlistUpdate; if (loot.settings.updateMasterlist) { - mlistUpdate = updateMasterlist(evt); + mlistUpdate = updateMasterlistNoProgress(); } else { mlistUpdate = new Promise(function(resolve, reject){ resolve('');