Skip to content
Snippets Groups Projects
Commit f15b9739 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: With the indexed menu, don't show "No new messages" if the...

DDMsgReader: With the indexed menu, don't show "No new messages" if the indexed menu has already been displayed
parent d56a62dc
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
if (usingTradInterface)
this.indexedModeItemDescWidth -= (numberedModeItemNumWidth+1);
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")
{
thisFunctionFirstCall = true;
this.indexedModeMenu = this.CreateLightbarIndexedModeMenu(numMsgsWidth, numNewMsgsWidth, lastPostDateWidth, this.indexedModeItemDescWidth, this.indexedModeSubBoardMenuSubBoardFormatStr);
}
else
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.
......@@ -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
// 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.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