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

Merge branch 'dd_file_area_chooser_list_libraries_fix' into 'master'

DD file area chooser fix: Listing libraries without first listing directories...

See merge request !194
parents 8da60139 58227757
Branches
Tags
2 merge requests!463MRC mods by Codefenix (2024-10-20),!194DD file area chooser fix: Listing libraries without first listing directories...
...@@ -27,6 +27,12 @@ ...@@ -27,6 +27,12 @@
* Running this scipt with the "false command-line parameter * Running this scipt with the "false command-line parameter
* works again, allowing the user to choose the file directory * works again, allowing the user to choose the file directory
* within their file library. * within their file library.
* 2022-07-03 Eric Oulashin Version 1.27
* When listing libraries without first listing directories
* within the user's current library, it wouldn't display
* the libraries the first time because the library information
* wasn't built when using directory collapsing. This has been
* fixed.
*/ */
// TODO: Failing silently when 1st argument is true // TODO: Failing silently when 1st argument is true
...@@ -67,8 +73,8 @@ if (system.version_num < 31400) ...@@ -67,8 +73,8 @@ if (system.version_num < 31400)
} }
// Version & date variables // Version & date variables
var DD_FILE_AREA_CHOOSER_VERSION = "1.24"; var DD_FILE_AREA_CHOOSER_VERSION = "1.27";
var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-05-17"; var DD_FILE_AREA_CHOOSER_VER_DATE = "2022-07-03";
// Keyboard input key codes // Keyboard input key codes
var CTRL_H = "\x08"; var CTRL_H = "\x08";
...@@ -741,6 +747,14 @@ function DDFileAreaChooser_GetActualLibIdx() ...@@ -741,6 +747,14 @@ function DDFileAreaChooser_GetActualLibIdx()
// Return value: The number of directories listed // Return value: The number of directories listed
function DDFileAreaChooser_ListFileLibs_Traditional(pSearchText) function DDFileAreaChooser_ListFileLibs_Traditional(pSearchText)
{ {
// Ensure that the file directory printf information is created for
// this file library.
for (var libIdx = 0; libIdx < file_area.lib_list.length; ++libIdx)
{
if (typeof(this.fileDirListPrintfInfo[libIdx]) == "undefined")
this.BuildFileDirPrintfInfoForLib(libIdx);
}
var searchText = (typeof(pSearchText) == "string" ? pSearchText.toUpperCase() : ""); var searchText = (typeof(pSearchText) == "string" ? pSearchText.toUpperCase() : "");
// Print the list header // Print the list header
......
Digital Distortion Area Choosers Digital Distortion Area Choosers
Version 1.26 Version 1.26/1.27
Release date: 2022-06-12 Release date: 2022-07-03
by by
......
...@@ -5,6 +5,11 @@ Revision History (change log) ...@@ -5,6 +5,11 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.27 2022-07-03 File area chooser fix: When listing libraries without
first listing directories within the user's current
library, it wouldn't display the libraries the first
time because the library information wasn't built when
using directory collapsing. This has been fixed.
1.26 2022-06-12 File area chooser fix: Running the scipt with the "false" 1.26 2022-06-12 File area chooser fix: Running the scipt with the "false"
command-line parameter works again, allowing the user to command-line parameter works again, allowing the user to
choose the file directory within their file library. choose the file directory within their file library.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment