Pass url as second argument to slot

This commit is contained in:
cauimsouza 2018-09-05 02:24:15 +02:00
parent d324448039
commit fc1d192880

View File

@ -652,8 +652,8 @@ class WebEngineAudio(browsertab.AbstractAudio):
page = self._widget.page() page = self._widget.page()
return page.recentlyAudible() return page.recentlyAudible()
def _on_url_changed(self): @pyqtSlot(QUrl)
url = self._tab.url() def _on_url_changed(self, url):
is_audible = config.instance.get('content.audible_default', url=url) is_audible = config.instance.get('content.audible_default', url=url)
self.set_muted(not is_audible) self.set_muted(not is_audible)