From cffc26d98e297b30438c6569eeee6914c6f6e480 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Tue, 28 Jul 2026 00:54:33 +0200 Subject: [PATCH] Suggest ffdelay-style filenames on export (_delayedNms) Export used to suggest "_synced", losing the offset value itself. Restored the original ffdelay script's naming convention (_delayed500ms / _delayed-500ms) so the applied offset is visible in the filename, matching what the CLI tool already did before this GUI existed. --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index a0a8887..987382d 100644 --- a/main.py +++ b/main.py @@ -500,7 +500,11 @@ class MainWindow(QMainWindow): delay_ms = self.override_spinbox.value() input_p = Path(self.input_path) - suggested = str(input_p.with_name(f"{input_p.stem}_synced{input_p.suffix}")) + # Matches the original ffdelay script's naming convention + # (e.g. "_delayed500ms" / "_delayed-500ms") rather than inventing + # a new one. + delayed_str = f"{int(round(delay_ms))}" + suggested = str(input_p.with_name(f"{input_p.stem}_delayed{delayed_str}ms{input_p.suffix}")) output_path, _ = QFileDialog.getSaveFileName(self, "Export synced file", suggested) if not output_path: return