Quote:
Originally Posted by BeckyEbook
I suggested this solution with the file name based on the title stored in the book's metadata, and I have been using it very often ever since.
However, I understand that what makes my life easier has broken the feature that suggests a file name based on the template name.
I'm sure it can be fixed so that both sides are happy, I just need to think about it for a moment.
I'm currently building a new version of Sigil, so I'll be testing it right away.
|
Understood. It is tricky code in that there are 3 possibilities:
If the m_CurrentFilePath is empty, then the book was loaded via a plugin or was created from scratch but never saved yet and no directory to save it in currently exists.
To make it harder, the input plugin can assign just a filename that is meaningful as the TemplatePlugin does or a temporary one that is not meaningful like most other input plugins like FolderIn does.
As far as I know there is no easy way to detect which has been done?
So there is no easy solution, unless we change all input plugins to choose the exact same temporary meaningless name, so we can detect that case and use your proposed name in place.
Let me check what FolderIn does.