mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Sort the names in the manage file excludes list
This commit is contained in:
		
							parent
							
								
									3477e6395c
								
							
						
					
					
						commit
						ba1b75e9fd
					
				@ -934,7 +934,8 @@ class ManageExcludedFiles(Dialog):
 | 
				
			|||||||
        self.files = QListWidget(self)
 | 
					        self.files = QListWidget(self)
 | 
				
			||||||
        self.files.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
 | 
					        self.files.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
 | 
				
			||||||
        cc = current_container()
 | 
					        cc = current_container()
 | 
				
			||||||
        for name, mt in cc.mime_map.items():
 | 
					        for name in sorted(cc.mime_map):
 | 
				
			||||||
 | 
					            mt = cc.mime_map[name]
 | 
				
			||||||
            if mt in OEB_DOCS or mt in (NCX_MIME, OPF_MIME):
 | 
					            if mt in OEB_DOCS or mt in (NCX_MIME, OPF_MIME):
 | 
				
			||||||
                i = QListWidgetItem(self.files)
 | 
					                i = QListWidgetItem(self.files)
 | 
				
			||||||
                i.setText(name)
 | 
					                i.setText(name)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user