fix: preserve nested Word structures and synchronize valid font families
This commit is contained in:
+5
-3
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user