Skip to content

After loading new page in current Tab the url_changed SIGNAL is not emited #5705

Answered by The-Compiler
Stas1981ru asked this question in Q&A
Discussion options

You must be logged in to vote

What exactly are you trying to do? Do you have a more complete example? This hack in a config.py:

from qutebrowser.utils import objreg
from qutebrowser.api import cmdutils

@cmdutils.register()
def setup_handler():
    cur_tab=objreg.window_by_index(0).tabbed_browser._now_focused
    cur_tab.url_changed.connect(lambda url: print(f"url changed to {url}"))

works fine for me.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@Stas1981ru
Comment options

@The-Compiler
Comment options

@Stas1981ru
Comment options

@The-Compiler
Comment options

Answer selected by The-Compiler
Comment options

You must be logged in to vote
4 replies
@The-Compiler
Comment options

@Stas1981ru
Comment options

@The-Compiler
Comment options

@Stas1981ru
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants