mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Fix up calls to open_url_in_browser() because it's been moved to
deluge.common.
This commit is contained in:
parent
4d6e4b1a06
commit
473110b7fe
@ -112,7 +112,6 @@ def open_url_in_browser(url):
|
||||
"""Opens link in the desktop's default browser"""
|
||||
def start_browser():
|
||||
import webbrowser
|
||||
log.debug("Opening webbrowser with url: %s", url)
|
||||
webbrowser.open(url)
|
||||
return False
|
||||
|
||||
|
@ -38,6 +38,7 @@ import pkg_resources
|
||||
|
||||
import deluge.component as component
|
||||
import deluge.ui.client as client
|
||||
import deluge.common as common
|
||||
|
||||
from deluge.log import LOG as log
|
||||
|
||||
@ -240,15 +241,15 @@ class MenuBar(component.Component):
|
||||
## Help Menu ##
|
||||
def on_menuitem_homepage_activate(self, data=None):
|
||||
log.debug("on_menuitem_homepage_activate")
|
||||
client.open_url_in_browser("http://deluge-torrent.org")
|
||||
common.open_url_in_browser("http://deluge-torrent.org")
|
||||
|
||||
def on_menuitem_faq_activate(self, data=None):
|
||||
log.debug("on_menuitem_faq_activate")
|
||||
client.open_url_in_browser("http://deluge-torrent.org/faq.php")
|
||||
common.open_url_in_browser("http://deluge-torrent.org/faq.php")
|
||||
|
||||
def on_menuitem_community_activate(self, data=None):
|
||||
log.debug("on_menuitem_community_activate")
|
||||
client.open_url_in_browser("http://forum.deluge-torrent.org/")
|
||||
common.open_url_in_browser("http://forum.deluge-torrent.org/")
|
||||
|
||||
def on_menuitem_about_activate(self, data=None):
|
||||
log.debug("on_menuitem_about_activate")
|
||||
|
Loading…
x
Reference in New Issue
Block a user