--- a/ExtensionProtobuf/ProjectProtocolsBrowser.py Mon Oct 30 09:01:59 2023 +0100 +++ b/ExtensionProtobuf/ProjectProtocolsBrowser.py Mon Dec 11 11:01:10 2023 +0100 @@ -221,6 +221,11 @@ self.tr("Add protocols directory..."), self.__addProtocolsDirectory ) self.sourceMenu.addSeparator() + with contextlib.suppress(AttributeError): + # eric7 > 23.12 + self.sourceMenu.addAction( + self.tr("Show in File Manager"), self._showInFileManager + ) self.sourceMenu.addAction( self.tr("Copy Path to Clipboard"), self._copyToClipboard ) @@ -262,6 +267,12 @@ self.tr("Add protocols directory..."), self.__addProtocolsDirectory ) self.menu.addSeparator() + with contextlib.suppress(AttributeError): + # eric7 > 23.12 + self.menu.addAction( + self.tr("Show in File Manager"), self._showInFileManager + ) + self.menu.addSeparator() self.menu.addAction(self.tr("Expand all directories"), self._expandAllDirs) self.menu.addAction(self.tr("Collapse all directories"), self._collapseAllDirs) self.menu.addAction(self.tr("Collapse all files"), self._collapseAllFiles) @@ -291,6 +302,12 @@ lambda: self.project.addDirectory("PROTOCOLS"), ) self.backMenu.addSeparator() + with contextlib.suppress(AttributeError): + # eric7 > 23.12 + self.backMenu.addAction( + self.tr("Show in File Manager"), self._showProjectInFileManager + ) + self.backMenu.addSeparator() self.backMenu.addAction(self.tr("Expand all directories"), self._expandAllDirs) self.backMenu.addAction( self.tr("Collapse all directories"), self._collapseAllDirs @@ -355,6 +372,11 @@ self.tr("Add protocols directory..."), self.__addProtocolsDirectory ) self.dirMenu.addSeparator() + with contextlib.suppress(AttributeError): + # eric7 > 23.12 + self.dirMenu.addAction( + self.tr("Show in File Manager"), self._showInFileManager + ) self.dirMenu.addAction(self.tr("Copy Path to Clipboard"), self._copyToClipboard) self.dirMenu.addSeparator() self.dirMenu.addAction(self.tr("Expand all directories"), self._expandAllDirs) @@ -646,7 +668,7 @@ self.parent(), self.tr("Delete Protocols"), self.tr( - "Do you really want to delete these protocol files from" " the project?" + "Do you really want to delete these protocol files from the project?" ), files, ) @@ -748,7 +770,7 @@ ui.showNotification( icon, self.tr("Protocol Compilation"), - self.tr("The compilation of the protocol file was" " successful."), + self.tr("The compilation of the protocol file was successful."), ) else: if grpc: