fix: preserve nested Word structures and synchronize valid font families

This commit is contained in:
2026-11-05 21:54:52 +08:00
parent 0e072eed3b
commit 7f81c2015e
12 changed files with 292 additions and 28 deletions
+5 -3
View File
@@ -113,9 +113,11 @@ def main(argv: list[str] | None = None) -> int:
app.setOrganizationName("MDHelper")
settings = QSettings("MDHelper", "MDHelper")
if project_root is None:
last_project_root = Path(str(settings.value("project/last_root", ""))).expanduser()
if str(last_project_root) and last_project_root.exists():
project_root = last_project_root.resolve()
last_root = settings.value("project/last_root", "")
if isinstance(last_root, str) and last_root.strip():
last_project_root = Path(last_root).expanduser()
if last_project_root.is_dir():
project_root = last_project_root.resolve()
logging.getLogger(__name__).info(
"Starting MDHelper %s with project_root=%s content_root=%s log_root=%s",