Bug fix: Don't spawn a notification for each new panel (fuck 22 panel update)
This commit is contained in:
parent
fd8c7881f8
commit
18d1536bc9
1 changed files with 9 additions and 6 deletions
|
@ -64,12 +64,15 @@ class MSPAChecker(QtGui.QWidget):
|
||||||
self.status['last_seen'] = {'pubdate':mktime(entries[-1].updated_parsed),'link':entries[-1].link}
|
self.status['last_seen'] = {'pubdate':mktime(entries[-1].updated_parsed),'link':entries[-1].link}
|
||||||
must_save = True
|
must_save = True
|
||||||
if self.status['last_seen']['pubdate'] > self.status['last_visited']['pubdate']:
|
if self.status['last_seen']['pubdate'] > self.status['last_visited']['pubdate']:
|
||||||
self.mspa = MSPAUpdateWindow(self.parent())
|
if not hasattr(self, "mspa"):
|
||||||
self.connect(self.mspa, QtCore.SIGNAL('accepted()'),
|
self.mspa = None
|
||||||
self, QtCore.SLOT('visit_site()'))
|
if not mspa:
|
||||||
self.connect(self.mspa, QtCore.SIGNAL('rejected()'),
|
self.mspa = MSPAUpdateWindow(self.parent())
|
||||||
self, QtCore.SLOT('nothing()'))
|
self.connect(self.mspa, QtCore.SIGNAL('accepted()'),
|
||||||
self.mspa.show()
|
self, QtCore.SLOT('visit_site()'))
|
||||||
|
self.connect(self.mspa, QtCore.SIGNAL('rejected()'),
|
||||||
|
self, QtCore.SLOT('nothing()'))
|
||||||
|
self.mspa.show()
|
||||||
else:
|
else:
|
||||||
#print "No new updates :("
|
#print "No new updates :("
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue