Fix conflicts filter not hiding cards correctly

This commit is contained in:
Oliver Hamlet
2016-06-08 07:04:46 +01:00
parent db5ce55764
commit 28da48a9c0
+4 -3
View File
@@ -409,8 +409,6 @@ function onEditorClose(evt) {
}).catch(loot.handlePromiseError);
}
function onConflictsFilter(evt) {
/* Deactivate any existing plugin conflict filter. */
loot.filters.deactivateConflictsFilter();
/* evt.currentTarget.value is the name of the target plugin, or an empty string
if the filter has been deactivated. */
if (evt.currentTarget.value) {
@@ -423,10 +421,13 @@ function onConflictsFilter(evt) {
gamePlugin.update(plugin);
}
});
filterPluginData(loot.game.plugins, loot.filters);
loot.Dialog.closeProgress();
}).catch(loot.handlePromiseError);
} else {
loot.filters.deactivateConflictsFilter();
filterPluginData(loot.game.plugins, loot.filters);
}
filterPluginData(loot.game.plugins, loot.filters);
}
function onCopyMetadata(evt) {
loot.query('copyMetadata', evt.target.getName()).then(() => {