Fix missing data path issue when creating themes folders #1184
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
The folder for custom GUI and syntax themes were attempted created before the data folder for novelWriter was created. This printed four error messages the first tome novelWriter was run on a new system. The problem resolved itself on the second run.
The error was handled, and the folders in question are read-only, so the error was trivial.
In the same PR, the functions to set dataPath and confPath in the main config object have been removed. They are not in use, neither by the app nor the test suite. A new common function to both check for and create folders at the same time, has been added. This is useful also elsewhere in the code.
Related Issue(s):
Resolves #1180
Reviewer's Checklist: