mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
72c304e345
commit
d6489d1013
@ -1151,11 +1151,10 @@ class Main(MainWindow, Ui_MainWindow):
|
|||||||
device=self.device_info)))
|
device=self.device_info)))
|
||||||
self.vanity.update()
|
self.vanity.update()
|
||||||
s = Settings()
|
s = Settings()
|
||||||
if True or s.get('update to version %s'%version, True):
|
if s.get('update to version %s'%version, True):
|
||||||
d = question_dialog(self, _('Update available'), _('%s has been updated to version %s. Visit the download page?')%(__appname__, version))
|
d = question_dialog(self, _('Update available'), _('%s has been updated to version %s. Visit the download page?')%(__appname__, version))
|
||||||
if d.exec_() == QMessageBox.Yes:
|
if d.exec_() == QMessageBox.Yes:
|
||||||
url = 'http://calibre.kovidgoyal.net/download_'+('windows' if iswindows else 'osx' if isosx else 'linux')
|
url = 'http://calibre.kovidgoyal.net/download_'+('windows' if iswindows else 'osx' if isosx else 'linux')
|
||||||
print url
|
|
||||||
QDesktopServices.openUrl(QUrl(url))
|
QDesktopServices.openUrl(QUrl(url))
|
||||||
s.set('update to version %s'%version, False)
|
s.set('update to version %s'%version, False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user