@@ -2354,6 +2354,8 @@ def displayNewInboxMessage(self, inventoryHash, toAddress, fromAddress, subject,
2354
2354
inbox = self .getAccountMessagelist (acct )
2355
2355
treeWidget = self .getAccountTreeWidget (acct )
2356
2356
self .propagateUnreadCount (acct .address )
2357
+ if shared .config .getboolean ('bitmessagesettings' , 'showtraynotifications' ):
2358
+ self .notifierShow (unicode (_translate ("MainWindow" ,'New Message' ).toUtf8 (),'utf-8' ), unicode (_translate ("MainWindow" ,'From ' ).toUtf8 (),'utf-8' ) + unicode (acct .fromLabel , 'utf-8' ), self .SOUND_UNKNOWN , None )
2357
2359
if (self .getCurrentFolder (treeWidget ) != "inbox" and self .getCurrentFolder (treeWidget ) is not None ) or self .getCurrentAccount (treeWidget ) != acct .address :
2358
2360
# Ubuntu should notify of new message irespective of whether it's in current message list or not
2359
2361
self .ubuntuMessagingMenuUpdate (True , None , acct .toLabel )
@@ -2373,8 +2375,6 @@ def displayNewInboxMessage(self, inventoryHash, toAddress, fromAddress, subject,
2373
2375
2374
2376
newItem = QtGui .QTableWidgetItem (unicode (acct .fromLabel , 'utf-8' ))
2375
2377
newItem .setToolTip (unicode (acct .fromLabel , 'utf-8' ))
2376
- if shared .config .getboolean ('bitmessagesettings' , 'showtraynotifications' ):
2377
- self .notifierShow (unicode (_translate ("MainWindow" ,'New Message' ).toUtf8 (),'utf-8' ), unicode (_translate ("MainWindow" ,'From ' ).toUtf8 (),'utf-8' ) + unicode (acct .fromLabel , 'utf-8' ), self .SOUND_UNKNOWN , None )
2378
2378
newItem .setData (Qt .UserRole , str (fromAddress ))
2379
2379
newItem .setFont (font )
2380
2380
newItem .setTextColor (AccountColor (fromAddress ).accountColor ())
0 commit comments