mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix opening links from Help menu and others
This commit is contained in:
parent
f16ff06083
commit
2acd470626
1 changed files with 9 additions and 11 deletions
|
@ -188,17 +188,15 @@ def open_url_in_browser(url):
|
||||||
|
|
||||||
:param url: the url to open
|
:param url: the url to open
|
||||||
"""
|
"""
|
||||||
def start_browser():
|
import threading
|
||||||
import threading
|
import webbrowser
|
||||||
import webbrowser
|
class BrowserThread(threading.Thread):
|
||||||
class BrowserThread(threading.Thread):
|
def __init__(self, url):
|
||||||
def __init__(self, url):
|
threading.Thread.__init__(self)
|
||||||
threading.Thread.__init__(self)
|
self.url = url
|
||||||
self.url = url
|
def run(self):
|
||||||
def run(self):
|
webbrowser.open(self.url)
|
||||||
webbrowser.open(self.url)
|
BrowserThread(url).start()
|
||||||
BrowserThread(url).start()
|
|
||||||
return False
|
|
||||||
|
|
||||||
## Formatting text functions
|
## Formatting text functions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue