def config_altered(self, persistGlobal):
_logger.info("<STR_LIT>")<EOL>self.lock.acquire()<EOL>self.hotKeyFolders = []<EOL>self.hotKeys = []<EOL>self.abbreviations = []<EOL>self.allFolders = []<EOL>self.allItems = []<EOL>for folder in self.folders:<EOL><INDENT>if model.TriggerMode.HOTKEY in folder.modes:<EOL><INDENT>self.hotKeyFolders.append(folder)<EOL><DEDENT>self.allFolders.append(folder)<EOL>if not self.app.monitor.has_watch(folder.path):<EOL><INDENT>self.app.monitor.add_watch(folder.path)<EOL><DEDENT>self.__processFolder(folder)<EOL><DEDENT>self.globalHotkeys = []<EOL>self.globalHotkeys.append(self.configHotkey)<EOL>self.globalHotkeys.append(self.toggleServiceHotkey)<EOL>if persistGlobal:<EOL><INDENT>save_config(self)<EOL><DEDENT>self.lock.release()<EOL>
Called when some element of configuration has been altered, to update
the lists of phrases/folders. 

@param persistGlobal: save the global configuration at the end of the process