Skip to content
Snippets Groups Projects

DDMsgReader: Screen refresh fix for selecting messages when automatically moving to the next message at the menu's last row on the screen

1 file
+ 0
6
Compare changes
  • Side-by-side
  • Inline
@@ -4343,8 +4343,6 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard)
@@ -4343,8 +4343,6 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard)
else if (lastUserInputUpper == " ")
else if (lastUserInputUpper == " ")
{
{
this.ToggleSelectedMessage(this.subBoardCode, this.lightbarListSelectedMsgIdx);
this.ToggleSelectedMessage(this.subBoardCode, this.lightbarListSelectedMsgIdx);
// TODO: Option to go to the next message after toggling
// New
var topItemIdxBackup = msgListMenu.topItemIdx;
var topItemIdxBackup = msgListMenu.topItemIdx;
if (this.userSettings.selectInMsgListMovesToNext && msgListMenu.selectedItemIdx < msgListMenu.NumItems())
if (this.userSettings.selectInMsgListMovesToNext && msgListMenu.selectedItemIdx < msgListMenu.NumItems())
{
{
@@ -4361,10 +4359,6 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard)
@@ -4361,10 +4359,6 @@ function DigDistMsgReader_ListMessages_Lightbar(pAllowChgSubBoard)
// check character column in the next iteration
// check character column in the next iteration
if (msgListMenu.topItemIdx == topItemIdxBackup)
if (msgListMenu.topItemIdx == topItemIdxBackup)
msgListMenu.nextDrawOnlyItemSubstr = { start: this.MSGNUM_LEN+1, end: this.MSGNUM_LEN+2 };
msgListMenu.nextDrawOnlyItemSubstr = { start: this.MSGNUM_LEN+1, end: this.MSGNUM_LEN+2 };
// End New
// Have the menu draw only the check character column in the
// next iteration
msgListMenu.nextDrawOnlyItemSubstr = { start: this.MSGNUM_LEN+1, end: this.MSGNUM_LEN+2 };
}
}
// Ctrl-A: Select/de-select all messages
// Ctrl-A: Select/de-select all messages
else if (lastUserInputUpper == CTRL_A)
else if (lastUserInputUpper == CTRL_A)
Loading