mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Minor usability enhancement for GST: make tooltip show source categories
This commit is contained in:
		
							parent
							
								
									0ed69b6ea1
								
							
						
					
					
						commit
						6c06fd23ec
					
				@ -1801,8 +1801,10 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
 | 
			
		||||
                    if user_cat in gst:
 | 
			
		||||
                        # for gst items, make copy and consolidate the tags by name.
 | 
			
		||||
                        if n in names_seen:
 | 
			
		||||
                            names_seen[n].id_set |= taglist[label][n].id_set
 | 
			
		||||
                            names_seen[n].count += taglist[label][n].count
 | 
			
		||||
                            t = names_seen[n]
 | 
			
		||||
                            t.id_set |= taglist[label][n].id_set
 | 
			
		||||
                            t.count += taglist[label][n].count
 | 
			
		||||
                            t.tooltip = t.tooltip.replace(')', ', ' + label + ')')
 | 
			
		||||
                        else:
 | 
			
		||||
                            t = copy.copy(taglist[label][n])
 | 
			
		||||
                            t.icon = icon_map['gst']
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user