summaryrefslogtreecommitdiffstats
path: root/ui/setup_dialog.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-03 15:35:46 +0200
committerDanilo M. <danix@danix.xyz>2026-05-03 15:35:46 +0200
commit273915dafd51c0ef7aa1ac3f74cb6192497b9b09 (patch)
tree8aa967c54f1088184cb2c32f531f3afbae4efc63 /ui/setup_dialog.py
parente28ebf9f0d2aaa9a6819f5a09cac05953080c1e9 (diff)
downloadpublisher-273915dafd51c0ef7aa1ac3f74cb6192497b9b09.tar.gz
publisher-273915dafd51c0ef7aa1ac3f74cb6192497b9b09.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'ui/setup_dialog.py')
-rw-r--r--ui/setup_dialog.py4
1 files changed, 4 insertions, 0 deletions
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()