diff options
author | Andrew Resch <andrewresch@gmail.com> | 2011-05-23 17:09:16 -0700 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2011-05-24 01:42:35 +0100 |
commit | 5e129b3c645dc74e657a13e350b9ceeda0599631 (patch) | |
tree | 7fb635be7026b894d96445f919f9d835058d68b6 | |
parent | 2d40d2b2248ebfdfd3d0952060e6d822c16538a4 (diff) | |
download | deluge-5e129b3c645dc74e657a13e350b9ceeda0599631.tar.gz deluge-5e129b3c645dc74e657a13e350b9ceeda0599631.tar.bz2 deluge-5e129b3c645dc74e657a13e350b9ceeda0599631.zip |
Fix up displaying versions in the about dialog
-rw-r--r-- | deluge/ui/gtkui/aboutdialog.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/deluge/ui/gtkui/aboutdialog.py b/deluge/ui/gtkui/aboutdialog.py index 5dd9d32dd..13199bc83 100644 --- a/deluge/ui/gtkui/aboutdialog.py +++ b/deluge/ui/gtkui/aboutdialog.py @@ -59,8 +59,8 @@ class AboutDialog: self.about.set_copyright(u'Copyright \u00A9 2007-2009 Deluge Team') self.about.set_comments( "A peer-to-peer file sharing program\nutilizing the Bittorrent " - "protocol.\n\nCore Version: %coreversion%\nlibtorrent version: " - "%ltversion%") + "protocol.\n\n" + "Client Version: %s\n" % version) self.about.set_version(version) self.about.set_authors([ "Current Developers:", "Andrew Resch", "Damien Churchill", @@ -279,6 +279,13 @@ class AboutDialog: )) if client.connected(): + if not client.is_classicmode(): + self.about.set_comments( + self.about.get_comments() + "Server Version: %coreversion%\n") + + self.about.set_comments( + self.about.get_comments() + "libtorrent Version: %ltversion%\n") + def on_lt_version(result): c = self.about.get_comments() c = c.replace("%ltversion%", result) @@ -290,7 +297,10 @@ class AboutDialog: self.about.set_comments(c) client.core.get_libtorrent_version().addCallback(on_lt_version) - client.daemon.info().addCallback(on_info) + if not client.is_classicmode(): + client.daemon.info().addCallback(on_info) + else: + client.core.get_libtorrent_version().addCallback(on_lt_version) def run(self): self.about.show_all() |