indent fix
This commit is contained in:
parent
9f1efa8802
commit
e039de8406
|
@ -115,23 +115,23 @@ class DelugeGTK:
|
|||
self.update_interface = True
|
||||
|
||||
def new_release_check():
|
||||
import urllib
|
||||
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
||||
if new_release > common.PROGRAM_VERSION:
|
||||
gtk.gdk.threads_enter()
|
||||
dialog = gtk.MessageDialog(parent = None,
|
||||
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
||||
buttons = gtk.BUTTONS_YES_NO,
|
||||
message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"),
|
||||
type=gtk.MESSAGE_QUESTION)
|
||||
dialog.set_title('New Release!')
|
||||
result = dialog.run()
|
||||
dialog.destroy()
|
||||
if result == gtk.RESPONSE_YES:
|
||||
common.open_url_in_browser('http://download.deluge-torrent.org')
|
||||
elif result == gtk.RESPONSE_NO:
|
||||
pass
|
||||
gtk.gdk.threads_leave()
|
||||
import urllib
|
||||
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
|
||||
if new_release > common.PROGRAM_VERSION:
|
||||
gtk.gdk.threads_enter()
|
||||
dialog = gtk.MessageDialog(parent = None,
|
||||
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
|
||||
buttons = gtk.BUTTONS_YES_NO,
|
||||
message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"),
|
||||
type=gtk.MESSAGE_QUESTION)
|
||||
dialog.set_title('New Release!')
|
||||
result = dialog.run()
|
||||
dialog.destroy()
|
||||
if result == gtk.RESPONSE_YES:
|
||||
common.open_url_in_browser('http://download.deluge-torrent.org')
|
||||
elif result == gtk.RESPONSE_NO:
|
||||
pass
|
||||
gtk.gdk.threads_leave()
|
||||
|
||||
|
||||
def send_info():
|
||||
|
|
Loading…
Reference in New Issue