View Single Post
Old 11-20-2021, 03:02 PM   #17
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
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.
Attached Files
File Type: txt tweak_book_gui_BEFORE.txt (23.4 KB, 129 views)
File Type: txt tweak_book_gui_AFTER.txt (23.4 KB, 110 views)
thiago.eec is offline   Reply With Quote