Fixed stuck backdrop for sorting progress.

This commit is contained in:
Oliver Hamlet
2014-11-09 19:00:17 +00:00
parent d5c8ad836f
commit 9818aa8f5d
+9 -4
View File
@@ -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('');