add warning for failed launch in win32
This commit is contained in:
parent
dc71d16ac1
commit
63e4724a8c
|
@ -36,7 +36,7 @@ import gobject
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from deluge.files import FilesBaseManager
|
from deluge.files import FilesBaseManager
|
||||||
from deluge import dgtk
|
from deluge import dgtk, dialogs
|
||||||
|
|
||||||
class FilesTabManager(FilesBaseManager):
|
class FilesTabManager(FilesBaseManager):
|
||||||
def __init__(self, file_view, manager):
|
def __init__(self, file_view, manager):
|
||||||
|
@ -98,7 +98,12 @@ class FilesTabManager(FilesBaseManager):
|
||||||
try:
|
try:
|
||||||
os.startfile(os.path.join(save_dir, file_name))
|
os.startfile(os.path.join(save_dir, file_name))
|
||||||
except WindowsError:
|
except WindowsError:
|
||||||
pass
|
import gtk
|
||||||
|
import dialogs
|
||||||
|
gtk.gdk.threads_enter()
|
||||||
|
result = dialogs.show_popup_warning(None, _("There is a \
|
||||||
|
newer version of Deluge. Would you like to be taken to our download site?"))
|
||||||
|
gtk.gdk.threads_leave()
|
||||||
else:
|
else:
|
||||||
exec_command(self.file_viewer,
|
exec_command(self.file_viewer,
|
||||||
os.path.join(save_dir, file_name))
|
os.path.join(save_dir, file_name))
|
||||||
|
|
Loading…
Reference in New Issue