summaryrefslogtreecommitdiffstats
path: root/ui/frontmatter_editor.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-03 10:37:59 +0200
committerDanilo M. <danix@danix.xyz>2026-05-03 10:37:59 +0200
commitd4e151f6782dc7a66313eb92bf6e05fa2d343823 (patch)
tree2d454705e8fd6a0df52c3d189c817e6c8717b4c3 /ui/frontmatter_editor.py
parentccbefa7b40f883e85c2b16e48519bece2b909c0c (diff)
downloadpublisher-d4e151f6782dc7a66313eb92bf6e05fa2d343823.tar.gz
publisher-d4e151f6782dc7a66313eb92bf6e05fa2d343823.zip
fix: remove dead code/imports, wrap fm column in QScrollArea, fix path display, simplify _save
Diffstat (limited to 'ui/frontmatter_editor.py')
-rw-r--r--ui/frontmatter_editor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/frontmatter_editor.py b/ui/frontmatter_editor.py
index 218bbac..3b4b690 100644
--- a/ui/frontmatter_editor.py
+++ b/ui/frontmatter_editor.py
@@ -7,7 +7,7 @@ from PyQt6.QtWidgets import (
from PyQt6.QtCore import Qt
from pathlib import Path
from core.models import Article, ARTICLE_TYPES
-from core.frontmatter import parse_frontmatter, write_frontmatter
+from core.frontmatter import write_frontmatter
from core.taxonomy import load_taxonomy
class FrontmatterEditor(QDialog):
@@ -76,8 +76,7 @@ class FrontmatterEditor(QDialog):
else:
updated[key] = val
try:
- _, body = parse_frontmatter(self._article.path)
- write_frontmatter(self._article.path, updated, body)
+ write_frontmatter(self._article.path, updated, "")
self._article.frontmatter.update(updated)
self.accept()
except Exception as e: