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

Merge branch 'dd_msg_reader_index_newscan_skip_subboard_fix' into 'master'

DDMsgReader bug fix: For the indexed-mode newscan, when showing only sub-boards that have new messages, ensure the selected item index is correct when re-populating the menu so that it doesn't skip a sub-board. Reported by Amessyroom.

See merge request !476
parents 2119bfac d6fd3473
No related branches found
No related tags found
1 merge request!476DDMsgReader bug fix: For the indexed-mode newscan, when showing only sub-boards that have new messages, ensure the selected item index is correct when re-populating the menu so that it doesn't skip a sub-board. Reported by Amessyroom.
...@@ -188,6 +188,11 @@ ...@@ -188,6 +188,11 @@
* 2024-11-20 Eric Oulashin Version 1.96c * 2024-11-20 Eric Oulashin Version 1.96c
* Bug fix: When showing a poll vote from the user, it should * Bug fix: When showing a poll vote from the user, it should
* show people who've voted - ensure it only counts vote responses * show people who've voted - ensure it only counts vote responses
* 2024-11-25 Eric Oulashin Version 1.96d
* Bug fix: For the indexed-mode newscan, when showing only
* sub-boards that have new messages, ensure the selected item
* index is correct when re-populating the menu so that it doesn't
* skip a sub-board.
*/ */
   
"use strict"; "use strict";
...@@ -295,8 +300,8 @@ var hexdump = load('hexdump_lib.js'); ...@@ -295,8 +300,8 @@ var hexdump = load('hexdump_lib.js');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.96c"; var READER_VERSION = "1.96d";
var READER_DATE = "2024-11-20"; var READER_DATE = "2024-11-25";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -16699,6 +16704,8 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi ...@@ -16699,6 +16704,8 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
// Ensure the menu is clear, and (re-)populate the menu with sub-board information w/ # of new messages in each, etc. // Ensure the menu is clear, and (re-)populate the menu with sub-board information w/ # of new messages in each, etc.
// Also, build an array of sub-board codes for each menu item. // Also, build an array of sub-board codes for each menu item.
this.indexedModeMenu.RemoveAllItems(); this.indexedModeMenu.RemoveAllItems();
setIndexedSubBoardMenuSelectedItemIdx(this.indexedModeMenu, 0);
DigDistMsgReader_IndexedModeChooseSubBoard.selectedItemIdx = 0;
var numSubBoards = 0; var numSubBoards = 0;
var totalNewMsgs = 0; var totalNewMsgs = 0;
for (var grpIdx = 0; grpIdx < msg_area.grp_list.length; ++grpIdx) for (var grpIdx = 0; grpIdx < msg_area.grp_list.length; ++grpIdx)
...@@ -16795,7 +16802,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi ...@@ -16795,7 +16802,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
return retObj; return retObj;
} }
} }
// If we've saved the index of the selected item in the menu, then set it back in the menu, if it's // If we've saved the index of the selected item in the menu, then set it back in the menu, if it's
// valid. This is done because the list of items is cleared each time this function is called. // valid. This is done because the list of items is cleared each time this function is called.
if (!thisFunctionFirstCall && typeof(DigDistMsgReader_IndexedModeChooseSubBoard.selectedItemIdx) === "number") if (!thisFunctionFirstCall && typeof(DigDistMsgReader_IndexedModeChooseSubBoard.selectedItemIdx) === "number")
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to // If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to
// DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from // DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from
// that same directory). // that same directory).
// Currently for DDMsgReader 1.96c. // Currently for DDMsgReader 1.96d.
// //
// If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want // If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want
// to save the configuration file there (rather than sbbs/mods), you can use one of the // to save the configuration file there (rather than sbbs/mods), you can use one of the
...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE"); ...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE");
require("uifcdefs.js", "UIFC_INMSG"); require("uifcdefs.js", "UIFC_INMSG");
if (!uifc.init("DigDist. Message Reader 1.96c Configurator")) if (!uifc.init("DigDist. Message Reader 1.96d Configurator"))
{ {
print("Failed to initialize uifc"); print("Failed to initialize uifc");
exit(1); exit(1);
......
This diff is collapsed.
...@@ -5,6 +5,10 @@ Revision History (change log) ...@@ -5,6 +5,10 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.96d 2024-11-25 Bug fix: For the indexed-mode newscan, when showing only
sub-boards that have new messages, ensure the selected
item index is correct when re-populating the menu so that
it doesn't skip a sub-board.
1.96c 2024-11-20 Bug fix: When showing a poll vote from the user, it should 1.96c 2024-11-20 Bug fix: When showing a poll vote from the user, it should
show people who've voted - ensure it only counts vote show people who've voted - ensure it only counts vote
responses responses
......
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