Clear hover URL when changing tab
This commit is contained in:
parent
c24e92e519
commit
9ce06c75bc
@ -183,6 +183,7 @@ class Url(TextBase):
|
|||||||
def on_tab_changed(self, idx):
|
def on_tab_changed(self, idx):
|
||||||
"""Update URL if the tab changed."""
|
"""Update URL if the tab changed."""
|
||||||
tab = self.sender().widget(idx)
|
tab = self.sender().widget(idx)
|
||||||
|
self.hover_url = None
|
||||||
self.normal_url = tab.url_text
|
self.normal_url = tab.url_text
|
||||||
status = LoadStatus[tab.load_status]
|
status = LoadStatus[tab.load_status]
|
||||||
if status in ['success', 'error', 'warn']:
|
if status in ['success', 'error', 'warn']:
|
||||||
|
Loading…
Reference in New Issue
Block a user