diff -r 4c17d54de9a3 -r 12c879b251d6 src/eric7/Project/Project.py --- a/src/eric7/Project/Project.py Sat Dec 10 19:01:40 2022 +0100 +++ b/src/eric7/Project/Project.py Sat Dec 10 19:50:13 2022 +0100 @@ -1,4 +1,4 @@ -""# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # Copyright (c) 2002 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> # @@ -819,12 +819,6 @@ for ext in self.__sourceExtensions(sourceKey): self.__pdata["FILETYPES"]["*{0}".format(ext)] = "SOURCES" - # IDL interfaces - self.__pdata["FILETYPES"]["*.idl"] = "INTERFACES" - - # Protobuf Files - self.__pdata["FILETYPES"]["*.proto"] = "PROTOCOLS" - # Forms if self.__pdata["PROJECTTYPE"] in [ "E7Plugin", @@ -861,6 +855,16 @@ self.__pdata["FILETYPES"]["*.ts"] = "TRANSLATIONS" self.__pdata["FILETYPES"]["*.qm"] = "TRANSLATIONS" + # File categories handled by activated plugin project browsers + for fileCategory in [ + f for f in self.__fileCategoriesRepository.keys() if f not in [ + "SOURCES", "FORMS", "RESOURCES", "TRANSLATIONS", "OTHERS" + ] + ]: + for ext in self.__fileCategoriesRepository[ + fileCategory + ].fileCategoryExtensions: + self.__pdata["FILETYPES"][ext] = fileCategory # Project type specific ones with contextlib.suppress(KeyError): if self.__fileTypeCallbacks[self.__pdata["PROJECTTYPE"]] is not None: @@ -2462,7 +2466,7 @@ if not self.checkDirty(): return - dlg = PropertiesDialog(self, True) + dlg = PropertiesDialog(self, new=True) if dlg.exec() == QDialog.DialogCode.Accepted: self.closeProject() @@ -2909,7 +2913,7 @@ """ from .PropertiesDialog import PropertiesDialog - dlg = PropertiesDialog(self, False) + dlg = PropertiesDialog(self, new=False) if dlg.exec() == QDialog.DialogCode.Accepted: projectType = self.__pdata["PROJECTTYPE"] dlg.storeData()