Skip to content

Commit 5a549b8

Browse files
InfernioSharlikran
authored andcommitted
Show a reason when ESL-checked plugin is already an ESL
Previously, we just displayed 'ESL Incapable' without any reason below the file name when 'Check ESL Qualifications' was run on an ESL-flagged file. This led to confusion for some users who weren't sure if this was a bug or expected behavior. We now show 'Already ESL-flagged.' as a reason, which should make this much more obvious.
1 parent 242b243 commit 5a549b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Mopy/bash/bosh/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,10 @@ def _rescanMergeable(self, names, progress, doCBash, return_results):
20442044
if not doCBash and reOblivion.match(fileName.s): continue
20452045
fileInfo = self[fileName]
20462046
# do not mark esls as esl capable
2047-
if fileInfo.is_esl() or not bush.game.esp.canBash:
2047+
if fileInfo.is_esl():
2048+
if return_results: reasons.append(u'Already ESL-flagged.')
2049+
canMerge = False
2050+
elif not bush.game.esp.canBash:
20482051
canMerge = False
20492052
else:
20502053
try:

0 commit comments

Comments
 (0)