893 statesList.sort() |
893 statesList.sort() |
894 lastHead = "" |
894 lastHead = "" |
895 itemCache = {} |
895 itemCache = {} |
896 if len(statesList) == 1 and statesList[0] == "--RESET--": |
896 if len(statesList) == 1 and statesList[0] == "--RESET--": |
897 statesList = [] |
897 statesList = [] |
898 for name in list(self.__vcsStatus.keys()): |
898 for name in self.__vcsStatus: |
899 statesList.append(" {0}".format(name)) |
899 statesList.append(" {0}".format(name)) |
900 |
900 |
901 for name in statesList: |
901 for name in statesList: |
902 state = name[0] |
902 state = name[0] |
903 if state in "AMORUZ ": |
903 if state in "AMORUZ ": |
967 |
967 |
968 def preferencesChanged(self): |
968 def preferencesChanged(self): |
969 """ |
969 """ |
970 Public method used to handle a change in preferences. |
970 Public method used to handle a change in preferences. |
971 """ |
971 """ |
972 for code in list(self.colorNames.keys()): |
972 for code in self.colorNames: |
973 color = Preferences.getProjectBrowserColour(self.colorNames[code]) |
973 color = Preferences.getProjectBrowserColour(self.colorNames[code]) |
974 if color.name() == self.itemBackgroundColors[code].name(): |
974 if color.name() == self.itemBackgroundColors[code].name(): |
975 continue |
975 continue |
976 |
976 |
977 self.itemBackgroundColors[code] = color |
977 self.itemBackgroundColors[code] = color |