Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
d785ec9f
Commit
d785ec9f
authored
Apr 27, 2022
by
Rob Swindell
💬
Browse files
Add a sort (alphabetical) option when listing batch queues
parent
79051b66
Pipeline
#3009
passed with stage
in 9 minutes and 38 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/sbbs3/bat_xfer.cpp
src/sbbs3/bat_xfer.cpp
+7
-0
No files found.
src/sbbs3/bat_xfer.cpp
View file @
d785ec9f
...
...
@@ -92,9 +92,13 @@ void sbbs_t::batchmenu()
start_batch_download
();
break
;
case
'L'
:
{
bool
sort
=
!
noyes
(
text
[
SortAlphaQ
]);
ini
=
batch_list_read
(
&
cfg
,
useron
.
number
,
XFER_BATCH_UPLOAD
);
filenames
=
iniGetSectionList
(
ini
,
NULL
);
if
(
strListCount
(
filenames
))
{
if
(
sort
)
strListSortAlphaCase
(
filenames
);
bputs
(
text
[
UploadQueueLstHdr
]);
for
(
size_t
i
=
0
;
filenames
[
i
];
++
i
)
{
const
char
*
filename
=
filenames
[
i
];
...
...
@@ -114,6 +118,8 @@ void sbbs_t::batchmenu()
ini
=
batch_list_read
(
&
cfg
,
useron
.
number
,
XFER_BATCH_DOWNLOAD
);
filenames
=
iniGetSectionList
(
ini
,
NULL
);
if
(
strListCount
(
filenames
))
{
if
(
sort
)
strListSortAlphaCase
(
filenames
);
bputs
(
text
[
DownloadQueueLstHdr
]);
for
(
size_t
i
=
0
;
filenames
[
i
];
++
i
)
{
const
char
*
filename
=
filenames
[
i
];
...
...
@@ -144,6 +150,7 @@ void sbbs_t::batchmenu()
iniFreeStringList
(
filenames
);
iniFreeStringList
(
ini
);
break
;
}
case
'R'
:
if
((
n
=
batup_total
())
>
0
)
{
bprintf
(
text
[
RemoveWhichFromUlQueue
],
n
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment