src/eric7/UI/UserInterface.py

branch
eric7-maintenance
changeset 10148
31ba20629af4
parent 10079
0222a480e93d
parent 10124
834c76d6ab4d
child 10174
6aac1022f330
equal deleted inserted replaced
10102:6ae4d88c722b 10148:31ba20629af4
8262 "Updates/LastCheckDate", QDate(1970, 1, 1) 8262 "Updates/LastCheckDate", QDate(1970, 1, 1)
8263 ) 8263 )
8264 if lastCheck.isValid(): 8264 if lastCheck.isValid():
8265 now = QDate.currentDate() 8265 now = QDate.currentDate()
8266 if ( 8266 if (
8267 (period == 2 and lastCheck.day() == now.day()) 8267 (period == 2 and lastCheck.daysTo(now) < 1)
8268 or (period == 3 and lastCheck.daysTo(now) < 7) 8268 or (period == 3 and lastCheck.daysTo(now) < 7)
8269 or ( 8269 or (
8270 period == 4 8270 period == 4
8271 and (lastCheck.daysTo(now) < lastCheck.daysInMonth()) 8271 and (lastCheck.daysTo(now) < lastCheck.daysInMonth())
8272 ) 8272 )

eric ide

mercurial