View Single Post
Old 04-03-2022, 12:02 PM   #103
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
I am not seeing that on my macOS build. It saves the settings to the sigil.ini file when it is closed and that dialog's destructor is called. Perhaps something is delaying the destructor being invoked? So I just added a closeEvent handler to save to the geometry to the ini file earlier. Hopefully this will fix the issue you are seeing.

One thing to do is try your test again and after resizing and closing but before opening it again, please look in the sigil.ini file for the "dryrun_report" group heading and look for a "geometry" entry under it to verify something is being saved. If so, then the problem may be related to the ReadSettings.

Thanks,

Kevin

Quote:
Originally Posted by snarkophilus View Post
I just tried again, this time moving aside my %APPDATA%/sigil-ebook/sigil directory so starting with no saved preferences at all. Started sigil, it opened up an empty epub2 book. Typed ctrl-f, body, <tab>, somebody, hold down shift, click Replace All, and get the first image. Expand the window horizontally, that's the second image. Click Close, hold down shift, click Replace All and I get the third image which has the same geometry (both size and position) as the first image.

This is with 64-bit Windows 10 version 21H1.

I don't seem to have any other saved-geom issues - the main window, preview window, saved searches windows etc all work as expected.
KevinH is online now   Reply With Quote