src/eric7/WebBrowser/StatusBar/JavaScriptIcon.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
146 dlg = JavaScriptSettingsDialog(self._window) 146 dlg = JavaScriptSettingsDialog(self._window)
147 if dlg.exec() == QDialog.DialogCode.Accepted: 147 if dlg.exec() == QDialog.DialogCode.Accepted:
148 self._window.preferencesChanged() 148 self._window.preferencesChanged()
149 QTimer.singleShot(500, self.__updateIcon) 149 QTimer.singleShot(500, self.__updateIcon)
150 150
151 def __navigationRequestAccepted( 151 def __navigationRequestAccepted(self, url, _navigationType, isMainFrame, page):
152 self, url, navigationType, isMainFrame, page # noqa: U100
153 ):
154 """ 152 """
155 Private method to handle the navigationRequestAccepted signal. 153 Private method to handle the navigationRequestAccepted signal.
156 154
157 @param url URL being loaded 155 @param url URL being loaded
158 @type QUrl 156 @type QUrl
159 @param navigationType type of navigation request 157 @param _navigationType type of navigation request (unused)
160 @type QWebEnginePage.NavigationType 158 @type QWebEnginePage.NavigationType
161 @param isMainFrame flag indicating a navigation request of the 159 @param isMainFrame flag indicating a navigation request of the
162 main frame 160 main frame
163 @type bool 161 @type bool
164 @param page reference to the web page 162 @param page reference to the web page

eric ide

mercurial