View Single Post
Old 04-17-2011, 07:37 AM   #99
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@kiwidude: Found what seems to be a problem with the find_dups plugin initialization. The highlight config flag is being reset to False during startup, regardless of what the stored preference value is.

Sequence:
- Start calibre. Highlighting is disabled.
- Enable highlighting
- Exit calibre, then restart
- The highlighting flag is set to the saved value of True
- Find_dups is initialized and clears it back to false.

The stack trace for when the flag is erroneously set to False is:
Code:
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "calibre_dev\src\calibre\debug.py", line 187, in main
  File "calibre_dev\src\calibre\gui2\main.py", line 382, in main
  File "calibre_dev\src\calibre\gui2\main.py", line 286, in run_gui
  File "calibre_dev\src\calibre\gui2\main.py", line 253, in initialize
  File "calibre_dev\src\calibre\gui2\main.py", line 234, in initialize_db
  File "calibre_dev\src\calibre\gui2\main.py", line 203, in initialize_db_stage2
  File "calibre_dev\src\calibre\gui2\main.py", line 159, in start_gui
  File "calibre_dev\src\calibre\gui2\ui.py", line 329, in initialize
  File "calibre_plugins.find_duplicates.action", line 50, in initialization_complete
  File "calibre_plugins.find_duplicates.duplicates", line 261, in __init__
  File "calibre_plugins.find_duplicates.duplicates", line 277, in clear_duplicates_mode
  File "calibre_plugins.find_duplicates.duplicates", line 283, in restore_previous_gui_state
  File "calibre_dev\src\calibre\gui2\search_box.py", line 382, in set_highlight_only_button_icon
chaley is offline   Reply With Quote