From 273915dafd51c0ef7aa1ac3f74cb6192497b9b09 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 3 May 2026 15:35:46 +0200 Subject: feat: add typora_args config field for Wayland launch flags Allows passing extra CLI args (e.g. --ozone-platform=wayland) to Typora at launch without baking them into the binary path. Co-Authored-By: Claude Sonnet 4.6 --- ui/setup_dialog.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/setup_dialog.py') diff --git a/ui/setup_dialog.py b/ui/setup_dialog.py index 4a8c6b7..d99696e 100644 --- a/ui/setup_dialog.py +++ b/ui/setup_dialog.py @@ -33,6 +33,9 @@ class SetupDialog(QDialog): self._typora = QLineEdit(self._config.typora_bin) form.addRow("Typora bin:", self._typora) + self._typora_args = QLineEdit(self._config.typora_args) + form.addRow("Typora args:", self._typora_args) + layout.addLayout(form) btns = QHBoxLayout() @@ -51,5 +54,6 @@ class SetupDialog(QDialog): self._config.blog_repo = self._blog_repo.text().strip() self._config.transart_script = self._transart.text().strip() self._config.typora_bin = self._typora.text().strip() + self._config.typora_args = self._typora_args.text().strip() self._config.save() self.accept() -- cgit v1.2.3