View Single Post
Old 01-28-2023, 12:01 AM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,105
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by User_Z View Post
I think that saving your state before exiting, and subsequently restoring it at startup is the ability of the editor and not the operating system.

Sigil is written in Qt, and there are appropriate mechanisms for implementing this feature. For example, using the QSettings class.
Notepad++ allows you to close Notepad++ without being prompted to save unsaved files since it's text files are automatically backed up while Sigil prompts you to save before closing. Personally, I prefer Sigil's mechanism since it is entirely possible that I will open the epub in another program or send a copy back to the author for comment before—possibly—returning to Sigil to continue editing. It's a rather rare action for me to open the same epub twice in a row.

I currently have 17 text files open in Notepad++ for a total of 67KB. By contrast, the last epub I opened in Sigil was 49MB in it's zip container and contained 497 files and the epub I am currently working on close to 300MB but a large part of that size is due to the number of images. The time to save those 17 text files is rather short compared to the time required to stuff 332MB of files into a .zip container and repeating that action every time I make a change in any file.

Last edited by DNSB; 01-28-2023 at 12:03 AM.
DNSB is offline   Reply With Quote