diff --git a/README.preferences.md b/README.preferences.md index ef76f6e..48ed919 100644 --- a/README.preferences.md +++ b/README.preferences.md @@ -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 diff --git a/app/SysTray-X/preferencesdialog.cpp b/app/SysTray-X/preferencesdialog.cpp index 0a8c3de..5ed0da1 100644 --- a/app/SysTray-X/preferencesdialog.cpp +++ b/app/SysTray-X/preferencesdialog.cpp @@ -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 diff --git a/webext/js/folderChange.js b/webext/js/folderChange.js index 2e57e84..34627a3 100644 --- a/webext/js/folderChange.js +++ b/webext/js/folderChange.js @@ -383,7 +383,9 @@ var SysTrayX = { addHasNewMessages(folder) { let folderNewMsgCount = folder.hasNewMessages; - this.newMsgCount = this.newMsgCount || folderNewMsgCount; + if (folderNewMsgCount > 0) { + this.newMsgCount += folderNewMsgCount; + } }, getAccounts() { diff --git a/webext/options.html b/webext/options.html index cad197a..e0f2bb6 100644 --- a/webext/options.html +++ b/webext/options.html @@ -391,9 +391,6 @@ /> - - -