mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Implement #3408 (Disable Latest version display)
This commit is contained in:
parent
f0d3fe56b4
commit
b36808c1fc
@ -206,6 +206,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
self.latest_version = ' '
|
self.latest_version = ' '
|
||||||
self.vanity.setText(self.vanity_template%dict(version=' ', device=' '))
|
self.vanity.setText(self.vanity_template%dict(version=' ', device=' '))
|
||||||
self.device_info = ' '
|
self.device_info = ' '
|
||||||
|
if not opts.no_update_check:
|
||||||
self.update_checker = CheckForUpdates()
|
self.update_checker = CheckForUpdates()
|
||||||
QObject.connect(self.update_checker,
|
QObject.connect(self.update_checker,
|
||||||
SIGNAL('update_found(PyQt_PyObject)'), self.update_found)
|
SIGNAL('update_found(PyQt_PyObject)'), self.update_found)
|
||||||
@ -1815,6 +1816,8 @@ path_to_ebook to the database.
|
|||||||
help=_('Start minimized to system tray.'))
|
help=_('Start minimized to system tray.'))
|
||||||
parser.add_option('-v', '--verbose', default=0, action='count',
|
parser.add_option('-v', '--verbose', default=0, action='count',
|
||||||
help=_('Log debugging information to console'))
|
help=_('Log debugging information to console'))
|
||||||
|
parser.add_option('--no-update-check', default=False, action='store_true',
|
||||||
|
help=_('Do not check for updates'))
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def init_qt(args):
|
def init_qt(args):
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user