mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
indent fix
This commit is contained in:
parent
9f1efa8802
commit
e039de8406
1 changed files with 17 additions and 17 deletions
|
@ -115,23 +115,23 @@ class DelugeGTK:
|
||||||
self.update_interface = True
|
self.update_interface = True
|
||||||
|
|
||||||
def new_release_check():
|
def new_release_check():
|
||||||
import urllib
|
import urllib
|
||||||
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
||||||
if new_release > common.PROGRAM_VERSION:
|
if new_release > common.PROGRAM_VERSION:
|
||||||
gtk.gdk.threads_enter()
|
gtk.gdk.threads_enter()
|
||||||
dialog = gtk.MessageDialog(parent = None,
|
dialog = gtk.MessageDialog(parent = None,
|
||||||
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
||||||
buttons = gtk.BUTTONS_YES_NO,
|
buttons = gtk.BUTTONS_YES_NO,
|
||||||
message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"),
|
message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"),
|
||||||
type=gtk.MESSAGE_QUESTION)
|
type=gtk.MESSAGE_QUESTION)
|
||||||
dialog.set_title('New Release!')
|
dialog.set_title('New Release!')
|
||||||
result = dialog.run()
|
result = dialog.run()
|
||||||
dialog.destroy()
|
dialog.destroy()
|
||||||
if result == gtk.RESPONSE_YES:
|
if result == gtk.RESPONSE_YES:
|
||||||
common.open_url_in_browser('http://download.deluge-torrent.org')
|
common.open_url_in_browser('http://download.deluge-torrent.org')
|
||||||
elif result == gtk.RESPONSE_NO:
|
elif result == gtk.RESPONSE_NO:
|
||||||
pass
|
pass
|
||||||
gtk.gdk.threads_leave()
|
gtk.gdk.threads_leave()
|
||||||
|
|
||||||
|
|
||||||
def send_info():
|
def send_info():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue