Unread count refresh on change
This commit is contained in:
parent
8f1e753cf0
commit
185d212cb2
|
@ -46,7 +46,11 @@ class AccountMixin (object):
|
||||||
self.address = str(address)
|
self.address = str(address)
|
||||||
|
|
||||||
def setUnreadCount(self, cnt):
|
def setUnreadCount(self, cnt):
|
||||||
|
if hasattr(self, "unreadCount") and self.unreadCount == int(cnt):
|
||||||
|
return
|
||||||
self.unreadCount = int(cnt)
|
self.unreadCount = int(cnt)
|
||||||
|
if isinstance(self, QtGui.QTreeWidgetItem):
|
||||||
|
self.emitDataChanged()
|
||||||
|
|
||||||
def setEnabled(self, enabled):
|
def setEnabled(self, enabled):
|
||||||
self.isEnabled = enabled
|
self.isEnabled = enabled
|
||||||
|
|
Reference in New Issue
Block a user