Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
15f40498
Commit
15f40498
authored
1 year ago
by
Eric Oulashin
Browse files
Options
Downloads
Patches
Plain Diff
DDFileAreaChooser: Fix for the directory item counts
parent
a4b56865
No related branches found
No related tags found
1 merge request
!425
DDFileAreaChooser: Fix for the directory item counts
Pipeline
#6127
passed
1 year ago
Stage: build
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xtrn/DDAreaChoosers/DDFileAreaChooser.js
+10
-17
10 additions, 17 deletions
xtrn/DDAreaChoosers/DDFileAreaChooser.js
xtrn/DDAreaChoosers/readme.txt
+2
-2
2 additions, 2 deletions
xtrn/DDAreaChoosers/readme.txt
xtrn/DDAreaChoosers/version_history.txt
+2
-1
2 additions, 1 deletion
xtrn/DDAreaChoosers/version_history.txt
with
14 additions
and
20 deletions
xtrn/DDAreaChoosers/DDFileAreaChooser.js
+
10
−
17
View file @
15f40498
...
...
@@ -66,6 +66,8 @@
* Directory name collapsing: Fix for incorrect subdir assignment.
* Also, won't collapse if the name before the separator is the same as
* the file library description.
* 2024-03-13 Eric Oulashin Version 1.41
* Fix for the directory item counts
*/
// TODO: Failing silently when 1st argument is true
...
...
@@ -106,8 +108,8 @@ if (system.version_num < 31400)
}
// Version & date variables
var
DD_FILE_AREA_CHOOSER_VERSION
=
"
1.4
0
"
;
var
DD_FILE_AREA_CHOOSER_VER_DATE
=
"
202
3-10-24
"
;
var
DD_FILE_AREA_CHOOSER_VERSION
=
"
1.4
1
"
;
var
DD_FILE_AREA_CHOOSER_VER_DATE
=
"
202
4-03-13
"
;
// Keyboard input key codes
var
CTRL_H
=
"
\
x08
"
;
...
...
@@ -1097,16 +1099,18 @@ function DDFileAreaChooser_SelectFileArea_Lightbar(pLevel, pLibIdx, pDirIdx, pCa
{
pAreaChooser
.
WriteDirListHdr1Line
(
pLibIdx
,
pDirIdx
,
pNumPages
,
pPageNum
);
console
.
gotoxy
(
1
,
pAreaChooser
.
areaChangeHdrLines
.
length
+
2
);
var
numItemsColHdrTxt
=
""
;
if
(
pAreaChooser
.
useDirCollapsing
)
{
if
(
pLevel
==
2
)
printf
(
pAreaChooser
.
fileDirHdrPrintfStr
,
"
Dir #
"
,
"
Description
"
,
"
# Items
"
)
;
numItemsColHdrTxt
=
"
# Items
"
;
else
if
(
level
==
3
)
printf
(
pAreaChooser
.
fileDirHdrPrintfStr
,
"
Dir #
"
,
"
Description
"
,
"
# Files
"
)
;
numItemsColHdrTxt
=
"
# Files
"
;
}
else
printf
(
pAreaChooser
.
fileDirHdrPrintfStr
,
"
Dir #
"
,
"
Description
"
,
"
# Files
"
);
numItemsColHdrTxt
=
"
# Files
"
;
printf
(
pAreaChooser
.
fileDirHdrPrintfStr
,
"
Dir #
"
,
"
Description
"
,
numItemsColHdrTxt
);
}
}
...
...
@@ -2491,18 +2495,7 @@ function DDFileAreaChooser_GetGreatestNumFiles(pLibIndex)
for
(
var
dirIndex
=
0
;
dirIndex
<
file_area
.
lib_list
[
pLibIndex
].
dir_list
.
length
;
++
dirIndex
)
{
var
dirCode
=
file_area
.
lib_list
[
pLibIndex
].
dir_list
[
dirIndex
].
code
;
// If we've alrady got the # of files for the dir, then use it; otherwise,
// call NumFilesInDir() to get the file count. Also, make sure these are
// all actual file counts in the directories.
if
(
typeof
(
retObj
.
fileCounts
[
dirIndex
])
==
"
number
"
)
{
if
(
this
.
useDirCollapsing
&&
(
this
.
lib_list
[
pLibIndex
].
dir_list
[
dirIndex
].
subdir_list
.
length
>
0
))
retObj
.
fileCountsByCode
[
dirCode
]
=
numFilesInDir
(
pLibIndex
,
dirIndex
);
else
retObj
.
fileCountsByCode
[
dirCode
]
=
retObj
.
fileCounts
[
dirIndex
];
}
else
retObj
.
fileCountsByCode
[
dirCode
]
=
numFilesInDir
(
pLibIndex
,
dirIndex
);
retObj
.
fileCountsByCode
[
dirCode
]
=
numFilesInDir
(
pLibIndex
,
dirIndex
);
}
return
retObj
;
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDAreaChoosers/readme.txt
+
2
−
2
View file @
15f40498
Digital Distortion Area Choosers
Version 1.41
/1.40
Release date: 202
3-10-27
Version 1.41
Release date: 202
4-03-13
by
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDAreaChoosers/version_history.txt
+
2
−
1
View file @
15f40498
...
...
@@ -5,7 +5,8 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.41 2023-1027 Message area chooser only: In lightbar mode, when using
1.41 2024-03-13 File area chooser: Fix for the directory item counts
1.41 2023-10-27 Message area chooser only: In lightbar mode, when using
name collapisng, ensure the menu item for the appropriate
subgroup is selected.
The file area chooser was already doing this.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment