Quote:
Originally Posted by kovidgoyal
Then I have to say I am stumped. Given I cannot reproduce its rather hard for me to come up with a fix.
|
Hi, Kovid.
I deleted the "tweak_book_gui.json" file and reopened the editor so calibre would recreate it. Then, I reconfigured the editor to look the same as before. Now, the geometry is being saved normally.
Before doing this, I saved two versions of the file, following this steps:
1) Closed the Editor with F&R panel closed;
1a) Saved "tweak_book_gui_BEFORE.json"
2) Opened the Editor, opened the F&R panel (CTRL+F);
3) Closed the Editor, with F&R panel opened.
3a) Saved "tweak_book_gui_AFTER.json"
Only two keys changed (as expected, I believe):
BEFORE:
Code:
"html-editor-state": {
"__class__": "bytearray",
"__value__": "AAAA/wAAAAD9AAAAAAAABH8AAANIAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAMAAAAUAGEAYwB0AGkAbwBuAF8AYgBhAHIBAAAAAP////8AAAAAAAAAAAAAABIAdABvAG8AbABzAF8AYgBhAHIBAAAA4P////8AAAAAAAAAAAAAAB4AaAB0AG0AbABfAGYAbwByAG0AYQB0AF8AYgBhAHIBAAACCf////8AAAAAAAAAAA=="
},
"search-panel-visible": false,
AFTER:
Code:
"html-editor-state": {
"__class__": "bytearray",
"__value__": "AAAA/wAAAAD9AAAAAAAABH8AAALdAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAMAAAAUAGEAYwB0AGkAbwBuAF8AYgBhAHIBAAAAAP////8AAAAAAAAAAAAAABIAdABvAG8AbABzAF8AYgBhAHIBAAAA4P////8AAAAAAAAAAAAAAB4AaAB0AG0AbABfAGYAbwByAG0AYQB0AF8AYgBhAHIBAAACCf////8AAAAAAAAAAA=="
},
"search-panel-visible": true,
I'm sending the complete files so maybe you can see what might be going on. Maybe some corrupted key value got written at some point.
P.S.: I changed the extension of the files because MR does not allow JSON files.