wmbiff: Display "0" when there are no new emails
...instead of displaying the total number of emails in the mailbox. On my gmail account with +16k emails, there was not enough space to display the account label. Besides, the total number of emails is useless information anyway. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
		
							parent
							
								
									52e69bfa0f
								
							
						
					
					
						commit
						2773b5a718
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -727,7 +727,7 @@ static void blitMsgCounters(unsigned int i)
 | 
				
			||||||
			BlitString(mbox[i].TextStatus, 39, y_row, newmail);
 | 
								BlitString(mbox[i].TextStatus, 39, y_row, newmail);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			int mailcount =
 | 
								int mailcount =
 | 
				
			||||||
				(newmail) ? mbox[i].UnreadMsgs : mbox[i].TotalMsgs;
 | 
									(newmail) ? mbox[i].UnreadMsgs : 0;
 | 
				
			||||||
			BlitNum(mailcount, 45, y_row, newmail);
 | 
								BlitNum(mailcount, 45, y_row, newmail);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue