Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(sheets): the Captions and Speech sheets lose the note in their header's corner

Jareer63f9a1d0ff08
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 97d09f93..486f5abd 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} Untertitel hinzugefügt",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Untertitel",
"captions.centre": "Mitte",
"captions.clipHasNoFile": "Dieser Clip hat keine Datei zum Transkribieren",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index 63eb492b..52bcc2c8 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "Added {0} captions",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Captions",
"captions.centre": "Centre",
"captions.clipHasNoFile": "This clip has no file to transcribe",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index d7a9ddba..d85230a1 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} subtítulos añadidos",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Subtítulos",
"captions.centre": "Centro",
"captions.clipHasNoFile": "Este clip no tiene archivo que transcribir",
diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.json
index d3f4004e..44a4e4b2 100644
--- a/src/crates/concat/locales/fa.json
+++ b/src/crates/concat/locales/fa.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "افزودن زیرنویس",
"captions.addedCaptions": "{0} زیرنویس اضافه شد",
- "captions.atThePlayhead": "در نشانگر پخش",
"captions.captions": "زیرنویس‌ها",
"captions.centre": "مرکز",
"captions.clipHasNoFile": "این کلیپ هیچ فایلای برای رونویسی ندارد",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index 953d9667..800eeda5 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} sous-titres ajoutés",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Sous-titres",
"captions.centre": "Centre",
"captions.clipHasNoFile": "Ce clip n'a pas de fichier à transcrire",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index 51d41677..b055c9ff 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Dodaj titlove",
"captions.addedCaptions": "Dodano {0} titlova",
- "captions.atThePlayhead": "na playheadu",
"captions.captions": "Titlovi",
"captions.centre": "Sredina",
"captions.clipHasNoFile": "Ovaj klip nema datoteku za transkripciju",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 5df2cfa6..27558ce2 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} sottotitoli aggiunti",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Sottotitoli",
"captions.centre": "Centro",
"captions.clipHasNoFile": "Questa clip non ha un file da trascrivere",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index 59611767..e55a1c4f 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} 件の字幕を追加しました",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "字幕",
"captions.centre": "中央",
"captions.clipHasNoFile": "このクリップには文字起こしするファイルがありません",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index 81dcc663..fa16f96f 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "자막 {0}개를 추가했습니다",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "자막",
"captions.centre": "가운데",
"captions.clipHasNoFile": "이 클립에는 받아쓸 파일이 없습니다",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index 6c00f925..fcab6103 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} legendas adicionadas",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Legendas",
"captions.centre": "Centro",
"captions.clipHasNoFile": "Este clipe não tem arquivo para transcrever",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index 962013d7..b8b84687 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Добавить субтитры",
"captions.addedCaptions": "Добавлено субтитров: {0}",
- "captions.atThePlayhead": "по курсору",
"captions.captions": "Субтитры",
"captions.centre": "Центр",
"captions.clipHasNoFile": "У этого клипа нет файла для распознавания",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 854f4bc9..bad2afe5 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "Add captions",
"captions.addedCaptions": "{0} altyazı eklendi",
- "captions.atThePlayhead": "at the playhead",
"captions.captions": "Altyazılar",
"captions.centre": "Orta",
"captions.clipHasNoFile": "Bu klibin yazıya dökülecek dosyası yok",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index 4f8ec47e..635955b4 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "添加字幕",
"captions.addedCaptions": "已添加 {0} 条字幕",
- "captions.atThePlayhead": "在播放头处",
"captions.captions": "字幕",
"captions.centre": "中心",
"captions.clipHasNoFile": "此片段没有可转录的文件",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index 51cd6471..fb07f3c8 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -4,7 +4,6 @@
},
"captions.addCaptions": "加入字幕",
"captions.addedCaptions": "已加入 {0} 則字幕",
- "captions.atThePlayhead": "在播放磁頭處",
"captions.captions": "字幕",
"captions.centre": "中心",
"captions.clipHasNoFile": "此片段沒有可轉錄的檔案",
diff --git a/src/crates/concat/src/panes/captions.rs b/src/crates/concat/src/panes/captions.rs
index 184caf97..60f73612 100644
--- a/src/crates/concat/src/panes/captions.rs
+++ b/src/crates/concat/src/panes/captions.rs
@@ -15,7 +15,6 @@ use std::sync::Arc;
use concat_project::Command;
use concat_project::model::TextStyle;
use concat_speech::transcribe::Segment;
-use slint::SharedString;
use crate::host::{on_ui_in_project, spawn_in_project};
use crate::i18n::{t, tf};
@@ -253,12 +252,6 @@ impl CaptionsPane {
CaptionsSheetData {
open: self.open,
from_sound: self.clip.is_some(),
- subject: self
- .clip
- .as_ref()
- .and_then(|id| studio.clip(id))
- .map(|clip| SharedString::from(clip.name.as_str()))
- .unwrap_or_else(|| t("captions.atThePlayhead").into()),
text: self.text.as_str().into(),
model: self.model as i32,
placement: self.placement as i32,
diff --git a/src/crates/concat/src/panes/speech.rs b/src/crates/concat/src/panes/speech.rs
index 514ffe0c..20378db5 100644
--- a/src/crates/concat/src/panes/speech.rs
+++ b/src/crates/concat/src/panes/speech.rs
@@ -562,12 +562,6 @@ impl SpeechPane {
running: self.running,
progress: self.progress,
ready: !installed(&studio.settings.voices).is_empty(),
- placement: if self.clip.is_some() {
- "at the title"
- } else {
- "at the playhead"
- }
- .into(),
estimate: self.estimate(studio).into(),
message: self.message.as_str().into(),
}
diff --git a/src/crates/concat/ui/dialogs/captions.slint b/src/crates/concat/ui/dialogs/captions.slint
index e81b7b71..7160619a 100644
--- a/src/crates/concat/ui/dialogs/captions.slint
+++ b/src/crates/concat/ui/dialogs/captions.slint
@@ -25,9 +25,6 @@ export struct CaptionsSheetData {
open: bool,
/// The selected clip has sound, and the sheet transcribes it.
from-sound: bool,
- /// For the header's note: the clip being transcribed, or where a
- /// script's captions land.
- subject: string,
text: string,
/// Row in the installed transcriber list.
model: int,
@@ -63,7 +60,6 @@ export component CaptionsDialog inherits Modal {
glyph: Glyph.text-mark;
surface-width: 480px;
dismissable: !root.data.running;
- note: root.data.subject;
// The script being typed, held apart from `data.text` the way the Field
// primitive holds its draft: a TextInput's binding is dropped on the
diff --git a/src/crates/concat/ui/dialogs/speech.slint b/src/crates/concat/ui/dialogs/speech.slint
index 5f59e52e..ae2c6a60 100644
--- a/src/crates/concat/ui/dialogs/speech.slint
+++ b/src/crates/concat/ui/dialogs/speech.slint
@@ -60,8 +60,6 @@ export struct SpeechSheetData {
progress: float,
/// A voice model is installed.
ready: bool,
- /// Where the sound will land, for the header's note.
- placement: string,
/// "About 0:12 in Heart", or what stops it being read.
estimate: string,
/// Why the last run failed, when it did.
@@ -246,7 +244,6 @@ export component SpeechDialog inherits Modal {
glyph: Glyph.volume;
surface-width: 520px;
dismissable: !root.data.running;
- note: root.data.placement;
// The script being typed, held apart from `data.text` the way the Field
// primitive holds its draft: a TextInput's binding is dropped on the