Skip to content
Snippets Groups Projects

DD File Lister: If used as a loadable module and blanked out the NFilesListed string, then revert NFilesListed on exit of the script

Merged Eric Oulashin requested to merge dd_file_lister_revert_NFilesListed into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -4049,7 +4049,10 @@ function parseArgs(argv)
// If gBlankNFilesListedStrIfLoadableModule is true, replace the "# Files Listed" text with an
// empty string so that it won't be displayed after exit
if (gBlankNFilesListedStrIfLoadableModule)
{
bbs.replace_text(NFilesListed, "");
js.on_exit("bbs.revert_text(NFilesListed);");
}
// The 2nd argument is the mode/behavior bits in either case
var FLBehavior = parseInt(argv[1]);
if (isNaN(FLBehavior))
Loading