mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Fix opening links from Help menu and others
This commit is contained in:
parent
f16ff06083
commit
2acd470626
@ -188,17 +188,15 @@ def open_url_in_browser(url):
|
||||
|
||||
:param url: the url to open
|
||||
"""
|
||||
def start_browser():
|
||||
import threading
|
||||
import webbrowser
|
||||
class BrowserThread(threading.Thread):
|
||||
def __init__(self, url):
|
||||
threading.Thread.__init__(self)
|
||||
self.url = url
|
||||
def run(self):
|
||||
webbrowser.open(self.url)
|
||||
BrowserThread(url).start()
|
||||
return False
|
||||
import threading
|
||||
import webbrowser
|
||||
class BrowserThread(threading.Thread):
|
||||
def __init__(self, url):
|
||||
threading.Thread.__init__(self)
|
||||
self.url = url
|
||||
def run(self):
|
||||
webbrowser.open(self.url)
|
||||
BrowserThread(url).start()
|
||||
|
||||
## Formatting text functions
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user