Add handling of build settings and build name

This commit is contained in:
Veronica Berglyd Olsen
2023-05-18 17:41:29 +02:00
parent 90a6cecd52
commit 79a28b9e43
4 changed files with 60 additions and 10 deletions
+2 -1
View File
@@ -75,7 +75,7 @@ SETTINGS_LABELS = {
"headings": QT_TRANSLATE_NOOP("Builds", "Headings"),
"headings.fmtTitle": QT_TRANSLATE_NOOP("Builds", "Title Heading"),
"headings.fmtChapter": QT_TRANSLATE_NOOP("Builds", "Chapter Heading"),
"headings.fmtUnnumbered": QT_TRANSLATE_NOOP("Builds", "Alt. Chapter Heading"),
"headings.fmtUnnumbered": QT_TRANSLATE_NOOP("Builds", "Unnumbered Heading"),
"headings.fmtScene": QT_TRANSLATE_NOOP("Builds", "Scene Heading"),
"headings.fmtSection": QT_TRANSLATE_NOOP("Builds", "Section Heading"),
"headings.hideScene": QT_TRANSLATE_NOOP("Builds", "Hide Scene"),
@@ -296,6 +296,7 @@ class BuildSettings:
def pack(self):
"""Pack all content into a JSON compatible dictionary.
"""
logger.debug("Collecting build setting for '%s'", self._name)
return {
"name": self._name,
"uuid": self._uuid,
-1
View File
@@ -22,7 +22,6 @@ General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
from __future__ import annotations
import uuid