When loading an epub, the opf package tag determines the epub version and once set in the FolderKeeper, it is spread to all files in the epub as they are added.
When creating a blank epub, the version must be set before the blank opf, xhtmlfiles,etc are created. When powering up the first time, the version is determined by the setting and it is read and used across various places that initialize the the opf, create empty files, etc.
So accessing the settings to grab the current setting is like having a global variable that can be checked easily every place you need. And since Sigil starts up empty, it must be clearly known at first start-up before user input is provided.
So creating a new book but not using the settings to get the version, means adding and changing interface calls to pass along the user supplied version to a few different places that would have to be tracked down.
Having a toggle show and display the current SettingsStore default version is therefore a much simpler change as once it is set, it is read in all of the places it is needed.
|