A new version with a number of bug fixes is available on the first post of this thread (see my signature for the link).
Calibre 0.8.2 or later is required for this release.
Older versions of the plugin will show an error message when trying to set the toolbar icon so I recommend you upgrade to both Calibre 0.8.2 and this release of the plugin.
It looks like all known bugs in the plugin are fixed after going through a number of test releases. Thanks to everyone who tested and sent in details of their issues. Of course if you find any new issues just post and I'll look into it.
The changes include:
- Fixed creating only empty collections when Kindle is reconnected on Windows
- Fixed incorrect number of books in collections when using split character
- Fixed crash of calibre when using Customize to change toolbar icon menu style
- Fixed incorrectly showing error if FONT_FAMILY setting does not exist
- Changed Edit to sort author by Calibre author_sort if available else name defined in Mobi book
- Removed invalid extension warnings to avoid false positives, but left in debug output
- Added warning message if two collection names from Calibre would conflict if prefix/suffix is ignored
- Added error message if no books on device are retrieved from Calibre
- Added error message if no books on device are retrieved from Kindle
- Added title of book in warning message about manually edited Calibre collections instead of code
- Changed displayed pathnames to full paths in correct windows/linux style
- Requires Calibre 0.8.2 or later due to build_bar fix
The tool bar fix in Calibre was unrelated to the crashing in Customize but it helped identify an issue I had with the toolbar since I had to rewrite the code to handle the toolbar icon (thanks Kovid and kiwidude!). It does mean you have to update Calibre though. Now when you change the type of toolbar icon, you'll need to restart calibre to see it instead of having it update automatically.
I've changed the way the Edit Collections window sorts Author names. It might lead to some confusion, but hopefully improves things for most people. It may need some tweaking based on feedback. Essentially it tries to sort the Authors exactly as Calibre sorts them - using the Author Sort field in Calibre if the book is in Calibre and on the Kindle. If the book is only on the Kindle then it will read the author name from the book if its mobi. If its not mobi and not in Calibre, then no author name will show up. When displaying the author name in the Edit window it will show the Author as firstname lastname even if its sorting by lastname, firstname - which should mimic Calibre and the Kindle. The confusion will come for books not in calibre that have author names that aren't set to lastname, firstname - they will sort by firstname until you add them to calibre or update their author name (or check if you've set the Author Sort field correctly in calibre). The tooltip on the author will show how its being sorted.
Suggestions and feedback welcome as usual.