View Single Post
Old 12-16-2024, 07:56 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I submitted the changes. I will add a post if and when Kovid accepts them into calibre source.

Prefs / Look & feel / Tag browser contains the new option, unchecked by default.
Click image for larger version

Name:	Clipboard01.jpg
Views:	109
Size:	176.8 KB
ID:	212518

The implementation provides an API for plugins.

To get the current expanded item:
Code:
	tbw = gui.tb_widget
	state = tbw.get_expansion_state()
To set the current expansion state using a previously retrieved state:
Code:
	tbw = gui.tb_widget
	tbw.restore_expansion_state(state)
chaley is offline   Reply With Quote