905 for pluginName in downloads: |
905 for pluginName in downloads: |
906 downloads[pluginName].sort(key=lambda x: x[1]) |
906 downloads[pluginName].sort(key=lambda x: x[1]) |
907 |
907 |
908 if pluginName in hiddenPlugins and \ |
908 if pluginName in hiddenPlugins and \ |
909 not Preferences.getPluginManager("KeepHidden"): |
909 not Preferences.getPluginManager("KeepHidden"): |
910 removeFiles = downloads[pluginName][0] |
910 removeFiles = [f[0] for f in downloads[pluginName]] |
911 else: |
911 else: |
912 removeFiles = [f[0] for f in downloads[pluginName][ |
912 removeFiles = [f[0] for f in downloads[pluginName][ |
913 :-Preferences.getPluginManager("KeepGenerations")]] |
913 :-Preferences.getPluginManager("KeepGenerations")]] |
914 for removeFile in removeFiles: |
914 for removeFile in removeFiles: |
915 try: |
915 try: |