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

Merge branch...

Merge branch 'dd_msg_reader_indexed_newscan_no_messages_dont_display_if_already_displayed_indexed_menu' into 'master'

DDMsgReader: With the indexed menu, don't show "No new messages" if the indexed menu has already been displayed

See merge request !381
parents 648f020d f15b9739
No related branches found
No related tags found
1 merge request!381DDMsgReader: With the indexed menu, don't show "No new messages" if the indexed menu has already been displayed
...@@ -15512,8 +15512,12 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi ...@@ -15512,8 +15512,12 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
if (usingTradInterface) if (usingTradInterface)
this.indexedModeItemDescWidth -= (numberedModeItemNumWidth+1); this.indexedModeItemDescWidth -= (numberedModeItemNumWidth+1);
this.indexedModeSubBoardMenuSubBoardFormatStr = "%-" + this.indexedModeItemDescWidth + "s %" + numMsgsWidth + "d %" + numNewMsgsWidth + "d %" + lastPostDateWidth + "s"; this.indexedModeSubBoardMenuSubBoardFormatStr = "%-" + this.indexedModeItemDescWidth + "s %" + numMsgsWidth + "d %" + numNewMsgsWidth + "d %" + lastPostDateWidth + "s";
var thisFunctionFirstCall = false; // Whether or not this is the first call of this function
if (typeof(this.indexedModeMenu) !== "object") if (typeof(this.indexedModeMenu) !== "object")
{
thisFunctionFirstCall = true;
this.indexedModeMenu = this.CreateLightbarIndexedModeMenu(numMsgsWidth, numNewMsgsWidth, lastPostDateWidth, this.indexedModeItemDescWidth, this.indexedModeSubBoardMenuSubBoardFormatStr); this.indexedModeMenu = this.CreateLightbarIndexedModeMenu(numMsgsWidth, numNewMsgsWidth, lastPostDateWidth, this.indexedModeItemDescWidth, this.indexedModeSubBoardMenuSubBoardFormatStr);
}
else else
DigDistMsgReader_IndexedModeChooseSubBoard.selectedItemIdx = this.indexedModeMenu.selectedItemIdx; DigDistMsgReader_IndexedModeChooseSubBoard.selectedItemIdx = this.indexedModeMenu.selectedItemIdx;
// 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.
...@@ -15580,7 +15584,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi ...@@ -15580,7 +15584,7 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
} }
// If there are no new messages and the user setting to show the indexed menu when there are no new messages // If there are no new messages and the user setting to show the indexed menu when there are no new messages
// is disabled, then say so and return. // is disabled, then say so and return.
else if (totalNewMsgs == 0 && !this.userSettings.displayIndexedModeMenuIfNoNewMessages) else if (thisFunctionFirstCall && totalNewMsgs == 0 && !this.userSettings.displayIndexedModeMenuIfNoNewMessages)
{ {
console.attributes = "N"; console.attributes = "N";
console.putmsg(bbs.text(QWKNoNewMessages)); console.putmsg(bbs.text(QWKNoNewMessages));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment