Put back wrapping for non-ANSI descriptions in file browser

This commit is contained in:
Bryan Ashby 2017-08-29 19:55:20 -06:00
parent af911f8e74
commit 6cbe574d4e
1 changed files with 17 additions and 12 deletions

View File

@ -376,6 +376,7 @@ exports.getModule = class FileAreaList extends MenuModule {
if(_.isString(self.currentFileEntry.desc)) {
const descView = self.viewControllers.browse.getView(MciViewIds.browse.desc);
if(descView) {
if(isAnsi(self.currentFileEntry.desc)) {
descView.setAnsi(
self.currentFileEntry.desc,
{
@ -388,6 +389,10 @@ exports.getModule = class FileAreaList extends MenuModule {
return callback(null);
}
);
} else {
descView.setText(self.currentFileEntry.desc);
return callback(null);
}
}
} else {
self.updateQueueIndicator();