View Single Post
Old 02-20-2014, 07:50 PM   #1986
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Kumabjorn View Post
See, this makes sense, now I understand why it is the way it is. From a laywoman's perspective this begs two questions:
1. Can a plug-in scan the columns and determine their names?
2. Is there a specific reason Calibre needs to restart when a column is added?

Thank you for a rational explanation. I'd send you karma if I wasn't on Tapatalk.
#2
When you 'add' a column in the GUI and click Apply, that only sets up the task.
The db must be detached, then the field is created (and all the linkage custom column magick happens)
The restart allows the GUI to 'discover' and display the column .

#1 can't happen until the column exists from #2 restart (attach horse to cart)

BTW You probably noticed the many plugins need a restart when first installed. Same sort of thing. Get all the pieces in place then 'discover' them while building up the GUI.
theducks is offline