Skip to content
Snippets Groups Projects
Commit 9bddabc1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Check for console abort (Ctrl-C) in directory searching for loops

Multiple directory searching functions wouldn't terminate on Ctrl-C
parent fee120db
No related branches found
No related tags found
No related merge requests found
Pipeline #6623 passed
......@@ -369,6 +369,8 @@ function view_file_info(mode)
return;
}
}
if(console.aborted)
return;
}
console.putmsg(bbs.text(bbs.text.SearchingAllLibs));
for(var i=0; i<file_area.lib_list.length; i++) {
......@@ -380,6 +382,8 @@ function view_file_info(mode)
return;
}
}
if(console.aborted)
return;
}
}
}
......@@ -397,6 +401,8 @@ function view_files()
continue;
if(bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FL_VIEW))
break;
if(console.aborted)
return;
}
if(i<file_area.lib_list[bbs.curlib].dir_list.length)
return;
......@@ -407,6 +413,8 @@ function view_files()
for(var j=0; j<file_area.lib_list[i].dir_list.length; j++) {
if(bbs.list_files(file_area.lib_list[i].dir_list[j].number, str, FL_VIEW))
return;
if(console.aborted)
return;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment