eric6/WebBrowser/SafeBrowsing/SafeBrowsingDialog.py

changeset 8260
2161475d9639
parent 8218
7c09585bd960
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
332 """ 332 """
333 Private slot to show the time of the next automatic threat list update. 333 Private slot to show the time of the next automatic threat list update.
334 """ 334 """
335 nextUpdateDateTime = Preferences.getWebBrowser( 335 nextUpdateDateTime = Preferences.getWebBrowser(
336 "SafeBrowsingUpdateDateTime") 336 "SafeBrowsingUpdateDateTime")
337 if ( 337 message = (
338 not nextUpdateDateTime.isValid() or 338 self.tr("The next automatic threat list update will be done now.")
339 nextUpdateDateTime <= QDateTime.currentDateTime() 339 if (not nextUpdateDateTime.isValid() or
340 ): 340 nextUpdateDateTime <= QDateTime.currentDateTime()) else
341 message = self.tr("The next automatic threat list update will be" 341 self.tr("<p>The next automatic threat list update will be done at"
342 " done now.") 342 " <b>{0}</b>.</p>").format(
343 else:
344 message = self.tr("<p>The next automatic threat list update will"
345 " be done at <b>{0}</b>.</p>").format(
346 nextUpdateDateTime.toString("yyyy-MM-dd, HH:mm:ss")) 343 nextUpdateDateTime.toString("yyyy-MM-dd, HH:mm:ss"))
344 )
347 345
348 E5MessageBox.information( 346 E5MessageBox.information(
349 self, 347 self,
350 self.tr("Update Time"), 348 self.tr("Update Time"),
351 message) 349 message)

eric ide

mercurial