mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-07 12:15:50 +02:00
Fix new count and enable option
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -383,7 +383,9 @@ var SysTrayX = {
|
||||
addHasNewMessages(folder) {
|
||||
let folderNewMsgCount = folder.hasNewMessages;
|
||||
|
||||
this.newMsgCount = this.newMsgCount || folderNewMsgCount;
|
||||
if (folderNewMsgCount > 0) {
|
||||
this.newMsgCount += folderNewMsgCount;
|
||||
}
|
||||
},
|
||||
|
||||
getAccounts() {
|
||||
|
||||
@@ -391,9 +391,6 @@
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table id="countprops" style="display: none">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="countType">__MSG_icons_number_count_type__</label>
|
||||
|
||||
Reference in New Issue
Block a user