Fix new count and enable option

This commit is contained in:
Ximi1970
2020-12-13 14:26:49 +01:00
parent b8de55a448
commit 53a7c4d47e
4 changed files with 9 additions and 11 deletions

View File

@@ -48,10 +48,11 @@ What icon should be used when there is new/unread mail.
Use a number to indicate the number of new/unread mails.
- Display unread message count: Display a number
- Number color: Change the color of the number.
- Number size: Change the size of the number.
- Number alignment: Set the number alignment within the icon.
- Number margins: Set the number margins from the icon border.
- Number color: Change the color of the number.
- Number size: Change the size of the number.
- Number alignment: Set the number alignment within the icon.
- Number margins: Set the number margins from the icon border.
- Number count type: Display the unread or new messages.
### Theme

View File

@@ -76,9 +76,7 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi
/*
* Hide the count type for now
*/
m_ui->countTypeGroupBox->setVisible(false);
// m_ui->unreadRadioButton->setVisible(false);
// m_ui->newRadioButton->setVisible(false);
// m_ui->countTypeGroupBox->setVisible(false);
/*
* Set icon type defaults

View File

@@ -383,7 +383,9 @@ var SysTrayX = {
addHasNewMessages(folder) {
let folderNewMsgCount = folder.hasNewMessages;
this.newMsgCount = this.newMsgCount || folderNewMsgCount;
if (folderNewMsgCount > 0) {
this.newMsgCount += folderNewMsgCount;
}
},
getAccounts() {

View File

@@ -391,9 +391,6 @@
/>
</td>
</tr>
</table>
<table id="countprops" style="display: none">
<tr>
<td>
<label for="countType">__MSG_icons_number_count_type__</label>