mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
@@ -791,11 +791,15 @@ function closeProgressDialog() {
|
||||
}
|
||||
}
|
||||
function sortPlugins(evt) {
|
||||
Promise.all([function(){
|
||||
if (loot.settings.updateMasterlist) {
|
||||
updateMasterlist(evt);
|
||||
}
|
||||
}]).then(function(){
|
||||
var mlistUpdate;
|
||||
if (loot.settings.updateMasterlist) {
|
||||
mlistUpdate = updateMasterlist(evt);
|
||||
} else {
|
||||
mlistUpdate = new Promise(function(resolve, reject){
|
||||
resolve('');
|
||||
});
|
||||
}
|
||||
mlistUpdate.then(function(){
|
||||
updateProgressDialog('Sorting plugins...');
|
||||
openProgressDialog();
|
||||
loot.query('sortPlugins').then(JSON.parse).then(function(result){
|
||||
|
||||
Reference in New Issue
Block a user