diff -r 683af9c45c5b -r ec86fc991d28 src/eric7/WebBrowser/FeaturePermissions/FeaturePermissionBar.py --- a/src/eric7/WebBrowser/FeaturePermissions/FeaturePermissionBar.py Wed Dec 18 17:40:14 2024 +0100 +++ b/src/eric7/WebBrowser/FeaturePermissions/FeaturePermissionBar.py Wed Dec 18 18:03:07 2024 +0100 @@ -59,9 +59,7 @@ QWebEnginePage.Feature.MediaAudioVideoCapture: self.tr( "{0} wants to use your microphone and camera." ), - QWebEnginePage.Feature.MouseLock: self.tr( - "{0} wants to lock your mouse." - ), + QWebEnginePage.Feature.MouseLock: self.tr("{0} wants to lock your mouse."), QWebEnginePage.Feature.DesktopVideoCapture: self.tr( "{0} wants to capture video of your screen." ), @@ -80,8 +78,7 @@ QWebEnginePage.Feature.MediaAudioVideoCapture: "audio-video", QWebEnginePage.Feature.MouseLock: "mouse", QWebEnginePage.Feature.DesktopVideoCapture: "desktopVideoCapture", - QWebEnginePage.Feature.DesktopAudioVideoCapture: - "desktopAudioVideoCapture", + QWebEnginePage.Feature.DesktopAudioVideoCapture: "desktopAudioVideoCapture", QWebEnginePage.Feature.Notifications: "notification", } @@ -98,9 +95,7 @@ self.__rememberButton.setCheckable(True) self.__allowButton = QPushButton(self.tr("Allow"), self) self.__denyButton = QPushButton(self.tr("Deny"), self) - self.__discardButton = QPushButton( - EricPixmapCache.getIcon("close"), "", self - ) + self.__discardButton = QPushButton(EricPixmapCache.getIcon("close"), "", self) self.__allowButton.clicked.connect(self.__permissionGranted) self.__denyButton.clicked.connect(self.__permissionDenied) self.__discardButton.clicked.connect(self.__permissionUnknown)