Implement #3408 (Disable Latest version display)

This commit is contained in:
Kovid Goyal 2009-09-10 20:59:39 -06:00
parent f0d3fe56b4
commit b36808c1fc
2 changed files with 247 additions and 231 deletions

View File

@ -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