UI/UserInterface.py

changeset 3202
d21df6f384fc
parent 3201
0f115f6db6cb
child 3321
ad3a75d3d870
equal deleted inserted replaced
3201:0f115f6db6cb 3202:d21df6f384fc
5792 if lastCheck.isValid(): 5792 if lastCheck.isValid():
5793 now = QDate.currentDate() 5793 now = QDate.currentDate()
5794 if period == 2 and lastCheck.day() == now.day(): 5794 if period == 2 and lastCheck.day() == now.day():
5795 # daily 5795 # daily
5796 return 5796 return
5797 elif (period == 3 and 5797 elif period == 3 and lastCheck.daysTo(now) < 7:
5798 lastCheck.weekNumber() == now.weekNumber()):
5799 # weekly 5798 # weekly
5800 return 5799 return
5801 elif period == 4 and lastCheck.month() == now.month(): 5800 elif period == 4 and (lastCheck.daysTo(now) <
5801 lastCheck.daysInMonth()):
5802 # monthly 5802 # monthly
5803 return 5803 return
5804 5804
5805 self.__inVersionCheck = True 5805 self.__inVersionCheck = True
5806 self.manualUpdatesCheck = manual 5806 self.manualUpdatesCheck = manual

eric ide

mercurial