Skip to content

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

feat(timeline): deleting a track asks first

Jareer0e9a4a97a7c2
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 5ff5b3dd..a4548bce 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -909,7 +909,6 @@
"studio.redo": "Wiederholen",
"studio.removeBackground": "Hintergrund entfernen: {0}",
"studio.retiredEffects": "Dieses Projekt nutzt Effekte, die diese Version nicht mehr hat: {0}. Sie bleiben in den Clips, als nicht installiert markiert.",
- "studio.upgradedEffects": "Einige Effekte in diesem Projekt öffnen sich als ihre Nachfolger: {0}. Speichere, um die Änderung zu behalten.",
"studio.reverse": "Rückwärts: {0}",
"studio.reverseAlreadyWorkOne": "Rückwärts läuft bereits; ein Clip nach dem anderen",
"studio.reversedClipNowShows": "Umgekehrt; der Clip zeigt jetzt die Kopie",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} ist jetzt HDR (HLG), wegen seines ersten HDR-Clips. Unter „Ändern“ lässt es sich zurückstellen.",
"studio.track": "Track {0}",
"studio.undo": "Rückgängig",
+ "studio.upgradedEffects": "Einige Effekte in diesem Projekt öffnen sich als ihre Nachfolger: {0}. Speichere, um die Änderung zu behalten.",
"sysinfo.application": "Anwendung",
"sysinfo.build": "Build",
"sysinfo.engine": "Engine",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Abstände entkoppeln",
"textPanel.useForNewTitles": "Für neue Titel verwenden",
"textPanel.vertical": "Vertikal",
+ "timeline.deleteTrackClips": "Diese Spur und die {0} Clips darauf werden gelöscht. Du kannst das rückgängig machen.",
+ "timeline.deleteTrackEmpty": "Diese leere Spur wird gelöscht. Du kannst das rückgängig machen.",
+ "timeline.deleteTrackOneClip": "Diese Spur und der Clip darauf werden gelöscht. Du kannst das rückgängig machen.",
+ "timeline.deleteTrackTitle": "Spur löschen?",
"timelinePane.freeze": "Einfrieren",
"timelinePane.mirror": "Spiegel",
"timelinePane.previewVideoAndAudio": "Video und Ton vorschauen",
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index 9d909269..4600ae21 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -909,7 +909,6 @@
"studio.redo": "Redo",
"studio.removeBackground": "Remove background: {0}",
"studio.retiredEffects": "This project uses effects this version no longer has: {0}. They stay in its clips, marked not installed.",
- "studio.upgradedEffects": "Some effects in this project open as the ones that replace them: {0}. Save to keep the change.",
"studio.reverse": "Reverse: {0}",
"studio.reverseAlreadyWorkOne": "Reverse is already at work; one clip at a time",
"studio.reversedClipNowShows": "Reversed; the clip now shows the copy",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} is now HDR (HLG), for its first HDR clip. Modify can set it back.",
"studio.track": "Track {0}",
"studio.undo": "Undo",
+ "studio.upgradedEffects": "Some effects in this project open as the ones that replace them: {0}. Save to keep the change.",
"sysinfo.application": "Application",
"sysinfo.build": "Build",
"sysinfo.engine": "Engine",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Unlock the paddings",
"textPanel.useForNewTitles": "Use for new titles",
"textPanel.vertical": "Vertical",
+ "timeline.deleteTrackClips": "This track and the {0} clips on it will be deleted. You can undo this.",
+ "timeline.deleteTrackEmpty": "This empty track will be deleted. You can undo this.",
+ "timeline.deleteTrackOneClip": "This track and the clip on it will be deleted. You can undo this.",
+ "timeline.deleteTrackTitle": "Delete track?",
"timelinePane.freeze": "Freeze",
"timelinePane.mirror": "Mirror",
"timelinePane.previewVideoAndAudio": "Preview video and audio",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index 202d2e9f..0569e3f1 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -909,7 +909,6 @@
"studio.redo": "Rehacer",
"studio.removeBackground": "Quitar fondo: {0}",
"studio.retiredEffects": "Este proyecto usa efectos que esta versión ya no tiene: {0}. Siguen en sus clips, marcados como no instalados.",
- "studio.upgradedEffects": "Algunos efectos de este proyecto se abren como los que los sustituyen: {0}. Guarda para conservar el cambio.",
"studio.reverse": "Invertir: {0}",
"studio.reverseAlreadyWorkOne": "Invertir ya está en marcha; un clip a la vez",
"studio.reversedClipNowShows": "Invertido; el clip ahora muestra la copia",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} ahora es HDR (HLG), por su primer clip HDR. En Modificar puedes volver atrás.",
"studio.track": "Track {0}",
"studio.undo": "Deshacer",
+ "studio.upgradedEffects": "Algunos efectos de este proyecto se abren como los que los sustituyen: {0}. Guarda para conservar el cambio.",
"sysinfo.application": "Aplicación",
"sysinfo.build": "Compilación",
"sysinfo.engine": "Motor",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Desvincular los rellenos",
"textPanel.useForNewTitles": "Usar para títulos nuevos",
"textPanel.vertical": "Vertical",
+ "timeline.deleteTrackClips": "Se eliminarán esta pista y los {0} clips que contiene. Puedes deshacerlo.",
+ "timeline.deleteTrackEmpty": "Se eliminará esta pista vacía. Puedes deshacerlo.",
+ "timeline.deleteTrackOneClip": "Se eliminarán esta pista y el clip que contiene. Puedes deshacerlo.",
+ "timeline.deleteTrackTitle": "¿Eliminar la pista?",
"timelinePane.freeze": "Congelar",
"timelinePane.mirror": "Espejo",
"timelinePane.previewVideoAndAudio": "Previsualizar vídeo y audio",
diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.json
index cb2f8f61..561428fb 100644
--- a/src/crates/concat/locales/fa.json
+++ b/src/crates/concat/locales/fa.json
@@ -909,7 +909,6 @@
"studio.redo": "انجام مجدد",
"studio.removeBackground": "حذف پس‌زمینه: {0}",
"studio.retiredEffects": "این پروژه از افکت‌هایی استفاده می‌کند که این نسخه دیگر ندارد: {0}. آن‌ها در کلیپ‌ها می‌مانند و «نصب‌نشده» علامت می‌خورند.",
- "studio.upgradedEffects": "برخی افکت‌های این پروژه به‌صورت افکت‌های جایگزینشان باز می‌شوند: {0}. برای نگه‌داشتن این تغییر ذخیره کنید.",
"studio.reverse": "معکوس: {0}",
"studio.reverseAlreadyWorkOne": "معکوس‌کردن در حال انجام است؛ هر بار یک کلیپ",
"studio.reversedClipNowShows": "معکوس شد؛ کلیپ اکنون نسخهٔ کپی را نشان می‌دهد",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} اکنون HDR (HLG) است، به خاطر نخستین کلیپ HDR آن. در «ویرایش» می‌توانید آن را برگردانید.",
"studio.track": "ترک {0}",
"studio.undo": "واگرد",
+ "studio.upgradedEffects": "برخی افکت‌های این پروژه به‌صورت افکت‌های جایگزینشان باز می‌شوند: {0}. برای نگه‌داشتن این تغییر ذخیره کنید.",
"sysinfo.application": "برنامه",
"sysinfo.build": "ساخت",
"sysinfo.engine": "موتور",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "باز کردن قفل حاشیه‌ها",
"textPanel.useForNewTitles": "استفاده برای عنوان‌های جدید",
"textPanel.vertical": "عمودی",
+ "timeline.deleteTrackClips": "این ترک و {0} کلیپ روی آن حذف می‌شوند. می‌توانید آن را برگردانید.",
+ "timeline.deleteTrackEmpty": "این ترک خالی حذف می‌شود. می‌توانید آن را برگردانید.",
+ "timeline.deleteTrackOneClip": "این ترک و کلیپ روی آن حذف می‌شوند. می‌توانید آن را برگردانید.",
+ "timeline.deleteTrackTitle": "ترک حذف شود؟",
"timelinePane.freeze": "فریز",
"timelinePane.mirror": "آینه",
"timelinePane.previewVideoAndAudio": "پیش‌نمایش ویدیو و صدا",
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index 585e63f0..92de224e 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -909,7 +909,6 @@
"studio.redo": "Rétablir",
"studio.removeBackground": "Retirer l'arrière-plan : {0}",
"studio.retiredEffects": "Ce projet utilise des effets que cette version n'a plus : {0}. Ils restent dans ses clips, marqués comme non installés.",
- "studio.upgradedEffects": "Certains effets de ce projet s'ouvrent sous la forme de ceux qui les remplacent : {0}. Enregistrez pour conserver le changement.",
"studio.reverse": "Inversion : {0}",
"studio.reverseAlreadyWorkOne": "Une inversion est déjà en cours ; un clip à la fois",
"studio.reversedClipNowShows": "Inversé ; le clip affiche désormais la copie",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} est maintenant en HDR (HLG), pour son premier clip HDR. Modifier permet de revenir en arrière.",
"studio.track": "Track {0}",
"studio.undo": "Annuler",
+ "studio.upgradedEffects": "Certains effets de ce projet s'ouvrent sous la forme de ceux qui les remplacent : {0}. Enregistrez pour conserver le changement.",
"sysinfo.application": "Application",
"sysinfo.build": "Build",
"sysinfo.engine": "Moteur",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Délier les marges",
"textPanel.useForNewTitles": "Utiliser pour les nouveaux titres",
"textPanel.vertical": "Vertical",
+ "timeline.deleteTrackClips": "Cette piste et les {0} clips qu'elle contient seront supprimés. Vous pourrez l'annuler.",
+ "timeline.deleteTrackEmpty": "Cette piste vide sera supprimée. Vous pourrez l'annuler.",
+ "timeline.deleteTrackOneClip": "Cette piste et le clip qu'elle contient seront supprimés. Vous pourrez l'annuler.",
+ "timeline.deleteTrackTitle": "Supprimer la piste ?",
"timelinePane.freeze": "Figer",
"timelinePane.mirror": "Miroir",
"timelinePane.previewVideoAndAudio": "Aperçu vidéo et audio",
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index baa7b78f..f3bf1aec 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -909,7 +909,6 @@
"studio.redo": "Ponovi",
"studio.removeBackground": "Ukloni pozadinu: {0}",
"studio.retiredEffects": "Ovaj projekt koristi efekte koje ova verzija više nema: {0}. Ostaju u isječcima, označeni kao neinstalirani.",
- "studio.upgradedEffects": "Neki efekti u ovom projektu otvaraju se kao efekti koji ih zamjenjuju: {0}. Spremi da zadržiš promjenu.",
"studio.reverse": "Obrtanje: {0}",
"studio.reverseAlreadyWorkOne": "Obrtanje je već u tijeku; jedan po jedan klip",
"studio.reversedClipNowShows": "Obrnuto; klip sada prikazuje kopiju",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} je sada HDR (HLG), zbog prvog HDR isječka. U Izmijeni ga možete vratiti.",
"studio.track": "Traka {0}",
"studio.undo": "Poništi",
+ "studio.upgradedEffects": "Neki efekti u ovom projektu otvaraju se kao efekti koji ih zamjenjuju: {0}. Spremi da zadržiš promjenu.",
"sysinfo.application": "Aplikacija",
"sysinfo.build": "Build",
"sysinfo.engine": "Pogon",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Otključaj razmake",
"textPanel.useForNewTitles": "Koristi za nove naslove",
"textPanel.vertical": "Okomito",
+ "timeline.deleteTrackClips": "Ova traka i isječci na njoj ({0}) bit će izbrisani. To možeš poništiti.",
+ "timeline.deleteTrackEmpty": "Ova prazna traka bit će izbrisana. To možeš poništiti.",
+ "timeline.deleteTrackOneClip": "Ova traka i isječak na njoj bit će izbrisani. To možeš poništiti.",
+ "timeline.deleteTrackTitle": "Izbrisati traku?",
"timelinePane.freeze": "Zamrzni",
"timelinePane.mirror": "Ogledalo",
"timelinePane.previewVideoAndAudio": "Pregled videa i zvuka",
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 0d5847df..8f7dae0f 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -909,7 +909,6 @@
"studio.redo": "Ripeti",
"studio.removeBackground": "Rimuovi sfondo: {0}",
"studio.retiredEffects": "Questo progetto usa effetti che questa versione non ha più: {0}. Restano nelle sue clip, segnati come non installati.",
- "studio.upgradedEffects": "Alcuni effetti di questo progetto si aprono come quelli che li sostituiscono: {0}. Salva per mantenere la modifica.",
"studio.reverse": "Inversione: {0}",
"studio.reverseAlreadyWorkOne": "Un'inversione è già in corso; una clip alla volta",
"studio.reversedClipNowShows": "Invertita; la clip ora mostra la copia",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} ora è HDR (HLG), per la sua prima clip HDR. Da Modifica puoi tornare indietro.",
"studio.track": "Track {0}",
"studio.undo": "Annulla",
+ "studio.upgradedEffects": "Alcuni effetti di questo progetto si aprono come quelli che li sostituiscono: {0}. Salva per mantenere la modifica.",
"sysinfo.application": "Applicazione",
"sysinfo.build": "Build",
"sysinfo.engine": "Motore",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Sblocca le spaziature",
"textPanel.useForNewTitles": "Usa per i nuovi titoli",
"textPanel.vertical": "Verticale",
+ "timeline.deleteTrackClips": "Questa traccia e le {0} clip che contiene verranno eliminate. Puoi annullare.",
+ "timeline.deleteTrackEmpty": "Questa traccia vuota verrà eliminata. Puoi annullare.",
+ "timeline.deleteTrackOneClip": "Questa traccia e la clip che contiene verranno eliminate. Puoi annullare.",
+ "timeline.deleteTrackTitle": "Eliminare la traccia?",
"timelinePane.freeze": "Blocca",
"timelinePane.mirror": "Specchio",
"timelinePane.previewVideoAndAudio": "Anteprima video e audio",
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index 1f841133..e2d0e54a 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -909,7 +909,6 @@
"studio.redo": "やり直す",
"studio.removeBackground": "背景を削除:{0}",
"studio.retiredEffects": "このプロジェクトは、このバージョンにはもうないエフェクトを使っています: {0}。クリップには残り、未インストールと表示されます。",
- "studio.upgradedEffects": "このプロジェクトの一部のエフェクトは、後継のエフェクトとして開かれます: {0}。変更を残すには保存してください。",
"studio.reverse": "逆再生: {0}",
"studio.reverseAlreadyWorkOne": "逆再生の処理中です。一度に1クリップまで",
"studio.reversedClipNowShows": "逆再生になりました。クリップはコピーを表示しています",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "最初の HDR クリップが入ったため、{0} は HDR (HLG) になりました。「変更」で元に戻せます。",
"studio.track": "Track {0}",
"studio.undo": "取り消す",
+ "studio.upgradedEffects": "このプロジェクトの一部のエフェクトは、後継のエフェクトとして開かれます: {0}。変更を残すには保存してください。",
"sysinfo.application": "アプリケーション",
"sysinfo.build": "ビルド",
"sysinfo.engine": "エンジン",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "余白の連動を解除する",
"textPanel.useForNewTitles": "新しいタイトルに使う",
"textPanel.vertical": "垂直",
+ "timeline.deleteTrackClips": "このトラックと、その上の {0} 個のクリップを削除します。取り消すことができます。",
+ "timeline.deleteTrackEmpty": "この空のトラックを削除します。取り消すことができます。",
+ "timeline.deleteTrackOneClip": "このトラックと、その上のクリップを削除します。取り消すことができます。",
+ "timeline.deleteTrackTitle": "トラックを削除しますか?",
"timelinePane.freeze": "フリーズ",
"timelinePane.mirror": "ミラー",
"timelinePane.previewVideoAndAudio": "映像と音声をプレビュー",
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index 72f35ae6..a9518544 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -909,7 +909,6 @@
"studio.redo": "다시 실행",
"studio.removeBackground": "배경 제거: {0}",
"studio.retiredEffects": "이 프로젝트는 이 버전에 더 이상 없는 효과를 사용합니다: {0}. 클립에는 남아 있으며 설치되지 않음으로 표시됩니다.",
- "studio.upgradedEffects": "이 프로젝트의 일부 효과는 이를 대체하는 효과로 열립니다: {0}. 변경 사항을 유지하려면 저장하세요.",
"studio.reverse": "역재생: {0}",
"studio.reverseAlreadyWorkOne": "역재생 처리가 이미 진행 중입니다. 한 번에 한 클립만",
"studio.reversedClipNowShows": "역재생 완료. 클립이 이제 복사본을 표시합니다",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "첫 HDR 클립이 들어와 {0}이(가) 이제 HDR (HLG)입니다. 수정에서 되돌릴 수 있습니다.",
"studio.track": "Track {0}",
"studio.undo": "실행 취소",
+ "studio.upgradedEffects": "이 프로젝트의 일부 효과는 이를 대체하는 효과로 열립니다: {0}. 변경 사항을 유지하려면 저장하세요.",
"sysinfo.application": "응용 프로그램",
"sysinfo.build": "빌드",
"sysinfo.engine": "엔진",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "여백 잠금 해제",
"textPanel.useForNewTitles": "새 제목에 사용",
"textPanel.vertical": "세로",
+ "timeline.deleteTrackClips": "이 트랙과 그 위의 클립 {0}개가 삭제됩니다. 실행 취소할 수 있습니다.",
+ "timeline.deleteTrackEmpty": "이 빈 트랙이 삭제됩니다. 실행 취소할 수 있습니다.",
+ "timeline.deleteTrackOneClip": "이 트랙과 그 위의 클립이 삭제됩니다. 실행 취소할 수 있습니다.",
+ "timeline.deleteTrackTitle": "트랙을 삭제할까요?",
"timelinePane.freeze": "정지",
"timelinePane.mirror": "미러",
"timelinePane.previewVideoAndAudio": "영상과 소리 미리보기",
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index 62aa18a9..4e1fb6b9 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -909,7 +909,6 @@
"studio.redo": "Refazer",
"studio.removeBackground": "Remover fundo: {0}",
"studio.retiredEffects": "Este projeto usa efeitos que esta versão não tem mais: {0}. Eles continuam nos clipes, marcados como não instalados.",
- "studio.upgradedEffects": "Alguns efeitos deste projeto abrem como os que os substituem: {0}. Salve para manter a mudança.",
"studio.reverse": "Reverter: {0}",
"studio.reverseAlreadyWorkOne": "Reverter já está em andamento; um clipe por vez",
"studio.reversedClipNowShows": "Revertido; o clipe agora mostra a cópia",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} agora é HDR (HLG), por causa do primeiro clipe HDR. Em Modificar dá para voltar.",
"studio.track": "Track {0}",
"studio.undo": "Desfazer",
+ "studio.upgradedEffects": "Alguns efeitos deste projeto abrem como os que os substituem: {0}. Salve para manter a mudança.",
"sysinfo.application": "Aplicativo",
"sysinfo.build": "Build",
"sysinfo.engine": "Motor",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Desvincular os preenchimentos",
"textPanel.useForNewTitles": "Usar em novos títulos",
"textPanel.vertical": "Vertical",
+ "timeline.deleteTrackClips": "Esta faixa e os {0} clipes nela serão excluídos. Você pode desfazer isso.",
+ "timeline.deleteTrackEmpty": "Esta faixa vazia será excluída. Você pode desfazer isso.",
+ "timeline.deleteTrackOneClip": "Esta faixa e o clipe nela serão excluídos. Você pode desfazer isso.",
+ "timeline.deleteTrackTitle": "Excluir a faixa?",
"timelinePane.freeze": "Congelar",
"timelinePane.mirror": "Espelho",
"timelinePane.previewVideoAndAudio": "Prévia de vídeo e áudio",
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index dddde29c..7d768fc6 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -909,7 +909,6 @@
"studio.redo": "Повторить",
"studio.removeBackground": "Удалить фон: {0}",
"studio.retiredEffects": "Проект использует эффекты, которых в этой версии больше нет: {0}. Они остаются в клипах с пометкой «не установлен».",
- "studio.upgradedEffects": "Некоторые эффекты проекта открываются как заменившие их: {0}. Сохраните проект, чтобы оставить изменение.",
"studio.reverse": "Реверс: {0}",
"studio.reverseAlreadyWorkOne": "Реверс уже выполняется; по одному клипу за раз",
"studio.reversedClipNowShows": "Реверс готов; клип теперь показывает копию",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} теперь HDR (HLG) — из-за первого HDR-клипа. Вернуть можно в «Изменить».",
"studio.track": "Дорожка {0}",
"studio.undo": "Отменить",
+ "studio.upgradedEffects": "Некоторые эффекты проекта открываются как заменившие их: {0}. Сохраните проект, чтобы оставить изменение.",
"sysinfo.application": "Приложение",
"sysinfo.build": "Сборка",
"sysinfo.engine": "Движок",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Разъединить отступы",
"textPanel.useForNewTitles": "Использовать для новых титров",
"textPanel.vertical": "По вертикали",
+ "timeline.deleteTrackClips": "Эта дорожка и клипы на ней ({0}) будут удалены. Это можно отменить.",
+ "timeline.deleteTrackEmpty": "Эта пустая дорожка будет удалена. Это можно отменить.",
+ "timeline.deleteTrackOneClip": "Эта дорожка и клип на ней будут удалены. Это можно отменить.",
+ "timeline.deleteTrackTitle": "Удалить дорожку?",
"timelinePane.freeze": "Стоп-кадр",
"timelinePane.mirror": "Зеркало",
"timelinePane.previewVideoAndAudio": "Предпросмотр видео и звука",
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 3239600f..b0f3ad08 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -909,7 +909,6 @@
"studio.redo": "Yinele",
"studio.removeBackground": "Arka planı kaldır: {0}",
"studio.retiredEffects": "Bu proje, bu sürümde artık bulunmayan efektler kullanıyor: {0}. Kliplerde kalırlar ve yüklü değil olarak işaretlenirler.",
- "studio.upgradedEffects": "Bu projedeki bazı efektler, yerlerini alan efektler olarak açılıyor: {0}. Değişikliği korumak için kaydedin.",
"studio.reverse": "Ters çevirme: {0}",
"studio.reverseAlreadyWorkOne": "Ters çevirme zaten sürüyor; her seferinde bir klip",
"studio.reversedClipNowShows": "Ters çevrildi; klip artık kopyayı gösteriyor",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} ilk HDR klibi nedeniyle artık HDR (HLG). Değiştir'den geri alabilirsiniz.",
"studio.track": "Track {0}",
"studio.undo": "Geri al",
+ "studio.upgradedEffects": "Bu projedeki bazı efektler, yerlerini alan efektler olarak açılıyor: {0}. Değişikliği korumak için kaydedin.",
"sysinfo.application": "Uygulama",
"sysinfo.build": "Derleme",
"sysinfo.engine": "Motor",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "Boşlukların kilidini aç",
"textPanel.useForNewTitles": "Yeni başlıklar için kullan",
"textPanel.vertical": "Dikey",
+ "timeline.deleteTrackClips": "Bu parça ve üzerindeki {0} klip silinecek. Bunu geri alabilirsiniz.",
+ "timeline.deleteTrackEmpty": "Bu boş parça silinecek. Bunu geri alabilirsiniz.",
+ "timeline.deleteTrackOneClip": "Bu parça ve üzerindeki klip silinecek. Bunu geri alabilirsiniz.",
+ "timeline.deleteTrackTitle": "Parça silinsin mi?",
"timelinePane.freeze": "Dondur",
"timelinePane.mirror": "Ayna",
"timelinePane.previewVideoAndAudio": "Video ve sesi önizle",
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index e7ab2a0b..7a9c13dd 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -909,7 +909,6 @@
"studio.redo": "重做",
"studio.removeBackground": "移除背景:{0}",
"studio.retiredEffects": "此项目使用了本版本已不再提供的效果:{0}。它们仍保留在片段中,标记为未安装。",
- "studio.upgradedEffects": "此项目中的部分效果会以取代它们的效果打开:{0}。保存即可保留此更改。",
"studio.reverse": "倒放:{0}",
"studio.reverseAlreadyWorkOne": "倒放处理已在进行;一次一个片段",
"studio.reversedClipNowShows": "已倒放;片段现在显示副本",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} 因加入第一个 HDR 片段,现在是 HDR (HLG)。可在“修改”中改回。",
"studio.track": "轨道 {0}",
"studio.undo": "撤销",
+ "studio.upgradedEffects": "此项目中的部分效果会以取代它们的效果打开:{0}。保存即可保留此更改。",
"sysinfo.application": "应用程序",
"sysinfo.build": "构建",
"sysinfo.engine": "引擎",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "解锁内边距",
"textPanel.useForNewTitles": "用于新标题",
"textPanel.vertical": "竖屏",
+ "timeline.deleteTrackClips": "这条轨道及其上的 {0} 个片段将被删除。你可以撤销此操作。",
+ "timeline.deleteTrackEmpty": "这条空轨道将被删除。你可以撤销此操作。",
+ "timeline.deleteTrackOneClip": "这条轨道及其上的片段将被删除。你可以撤销此操作。",
+ "timeline.deleteTrackTitle": "删除轨道?",
"timelinePane.freeze": "定格",
"timelinePane.mirror": "镜像",
"timelinePane.previewVideoAndAudio": "预览视频和音频",
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index 5ab2e864..0e1f05d0 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -909,7 +909,6 @@
"studio.redo": "重做",
"studio.removeBackground": "移除背景:{0}",
"studio.retiredEffects": "此專案使用了本版本已不再提供的效果:{0}。它們仍保留在片段中,標示為未安裝。",
- "studio.upgradedEffects": "此專案中的部分效果會以取代它們的效果開啟:{0}。儲存即可保留這項變更。",
"studio.reverse": "倒轉:{0}",
"studio.reverseAlreadyWorkOne": "倒轉處理已在進行;一次一個片段",
"studio.reversedClipNowShows": "已倒轉;片段現在顯示副本",
@@ -932,6 +931,7 @@
"studio.timelineNowHdr": "{0} 因加入第一個 HDR 片段,現在是 HDR (HLG)。可在「修改」中改回。",
"studio.track": "軌道 {0}",
"studio.undo": "復原",
+ "studio.upgradedEffects": "此專案中的部分效果會以取代它們的效果開啟:{0}。儲存即可保留這項變更。",
"sysinfo.application": "應用程式",
"sysinfo.build": "建置",
"sysinfo.engine": "引擎",
@@ -971,6 +971,10 @@
"textPanel.unlockThePaddings": "解除鎖定內邊距",
"textPanel.useForNewTitles": "用於新標題",
"textPanel.vertical": "垂直",
+ "timeline.deleteTrackClips": "這條軌道及其上的 {0} 個片段將被刪除。你可以復原此操作。",
+ "timeline.deleteTrackEmpty": "這條空軌道將被刪除。你可以復原此操作。",
+ "timeline.deleteTrackOneClip": "這條軌道及其上的片段將被刪除。你可以復原此操作。",
+ "timeline.deleteTrackTitle": "刪除軌道?",
"timelinePane.freeze": "定格",
"timelinePane.mirror": "鏡像",
"timelinePane.previewVideoAndAudio": "預覽影片和音訊",
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rs
index af5700b7..1d4e23b9 100644
--- a/src/crates/concat/src/lib.rs
+++ b/src/crates/concat/src/lib.rs
@@ -870,10 +870,7 @@ pub fn run() -> Result<(), slint::PlatformError> {
state.set_lane_size(row, size);
}));
editor.on_track_removed(on_window!(|state, row: i32| {
- let Some(id) = state.row_track(row).map(|track| track.id.clone()) else {
- return;
- };
- state.apply(concat_project::Command::RemoveTrack { track_id: id });
+ state.ask_remove_track(row);
}));
// ── the gestures ──
@@ -1262,6 +1259,13 @@ pub fn run() -> Result<(), slint::PlatformError> {
state.handle(Msg::Project(ProjectMsg::Apply));
}));
+ app.on_confirm_accepted(on_window!(|state| {
+ state.confirm_accepted();
+ }));
+ app.on_confirm_dismissed(on_window!(|state| {
+ state.confirm = None;
+ }));
+
app.on_relink_all(on_window!(|state| {
state.handle(Msg::Relink(RelinkMsg::RelinkAll));
}));
diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rs
index dc2d3807..5644767e 100644
--- a/src/crates/concat/src/studio.rs
+++ b/src/crates/concat/src/studio.rs
@@ -770,6 +770,8 @@ pub struct Studio {
pub export: crate::panes::export::ExportPane,
pub settings: crate::panes::settings::SettingsPane,
pub relink: crate::panes::relink::RelinkPane,
+ /// What the confirmation sheet is asking about, while it is up.
+ pub confirm: Option<Confirm>,
pub open_menu: i32,
pub menu_bar_token: i32,
pub menu_target: Option<String>,
@@ -1839,6 +1841,13 @@ fn retired_effects(project: &Project) -> Vec<String> {
names
}
+/// What the confirmation sheet can ask about.
+#[derive(Clone, Debug, PartialEq)]
+pub enum Confirm {
+ /// Deleting a whole track, and every clip on it.
+ RemoveTrack { track_id: String },
+}
+
/// Each rewritten link as "Old → New", the new one by its package's name.
fn upgraded_effects(pairs: &[(String, String)]) -> Vec<String> {
let catalogue = Catalogue::builtin();
@@ -1924,6 +1933,7 @@ impl Studio {
export: Default::default(),
settings: crate::panes::settings::SettingsPane::default(),
relink: crate::panes::relink::RelinkPane::default(),
+ confirm: None,
open_menu: -1,
menu_bar_token: 0,
menu_target: None,
@@ -2031,6 +2041,51 @@ impl Studio {
/// The track a row index names. Rows count from the top of the panel and
/// the model stores lanes bottom-most first - the compositing order - so
/// this is the one place the two orders meet.
+ /// Asks before the track on lane `row` goes, empty or not: a track is
+ /// a whole lane of the cut, and the button that drops it sits beside
+ /// the ones that hide and mute it.
+ pub fn ask_remove_track(&mut self, row: i32) {
+ let Some(track_id) = self.row_track(row).map(|track| track.id.clone()) else {
+ return;
+ };
+ self.confirm = Some(Confirm::RemoveTrack { track_id });
+ }
+
+ /// The confirmation sheet's answer: go ahead with what it asked about.
+ pub fn confirm_accepted(&mut self) {
+ if let Some(Confirm::RemoveTrack { track_id }) = self.confirm.take() {
+ self.apply(Command::RemoveTrack { track_id });
+ }
+ }
+
+ /// The confirmation sheet, as Slint shows it.
+ fn confirm_data(&self) -> crate::ui::ConfirmData {
+ let Some(confirm) = &self.confirm else {
+ return crate::ui::ConfirmData::default();
+ };
+ match confirm {
+ Confirm::RemoveTrack { track_id } => {
+ let clips = self
+ .timeline()
+ .clips
+ .iter()
+ .filter(|clip| &clip.track_id == track_id)
+ .count();
+ let message = match clips {
+ 0 => t("timeline.deleteTrackEmpty"),
+ 1 => t("timeline.deleteTrackOneClip"),
+ many => tf("timeline.deleteTrackClips", &[&many]),
+ };
+ crate::ui::ConfirmData {
+ open: true,
+ title: t("timeline.deleteTrackTitle").into(),
+ message: message.into(),
+ action: t("common.delete").into(),
+ }
+ }
+ }
+ }
+
pub fn row_track(&self, row: i32) -> Option<&Track> {
let tracks = &self.timeline().tracks;
let count = tracks.len() as i32;
@@ -8901,6 +8956,7 @@ impl Studio {
sync(&models.versions, self.settings.version_rows());
sync(&models.version_details, self.settings.version_details());
app.set_relink(self.relink.data());
+ app.set_confirm(self.confirm_data());
// The speech sheets, and the lists they choose from.
let transcribers = installed(&self.settings.transcribers);
diff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slint
index 9ae66063..0d597005 100644
--- a/src/crates/concat/ui/app.slint
+++ b/src/crates/concat/ui/app.slint
@@ -25,6 +25,7 @@ import { ExportData, ExportDialog, ExportPhase } from "dialogs/export.slint";
import { ModelData, SettingsData, SettingsDialog, SystemFactData } from "dialogs/settings.slint";
import { ProjectDialog, ProjectSheetData } from "dialogs/project.slint";
import { RelinkDialog, RelinkData, MissingMediaItem } from "dialogs/relink.slint";
+import { ConfirmData, ConfirmDialog } from "dialogs/confirm.slint";
import { CaptionsDialog, CaptionsSheetData } from "dialogs/captions.slint";
import { SpeechDialog, SpeechSheetData } from "dialogs/speech.slint";
import { DockDivider, DockSide, SeatBox } from "dock.slint";
@@ -798,6 +799,22 @@ export component App inherits Window {
dismiss => { root.relink-dismiss(); }
}
+ // A question before something is thrown away, over the workspace;
+ // nothing asks it while another sheet is up.
+ in property <ConfirmData> confirm;
+ callback confirm-accepted();
+ callback confirm-dismissed();
+
+ ConfirmDialog {
+ x: 0;
+ y: 0;
+ width: root.width;
+ height: root.height;
+ data: root.confirm;
+ confirmed => { root.confirm-accepted(); }
+ dismissed => { root.confirm-dismissed(); }
+ }
+
CaptionsDialog {
x: 0;
diff --git a/src/crates/concat/ui/dialogs/confirm.slint b/src/crates/concat/ui/dialogs/confirm.slint
new file mode 100644
index 00000000..f155f27d
--- /dev/null
+++ b/src/crates/concat/ui/dialogs/confirm.slint
@@ -0,0 +1,85 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors
+
+import { I18n } from "../i18n.slint";
+import { Theme } from "../theme/theme.slint";
+import { Glyph } from "../icons.slint";
+import { Button, Modal } from "../primitives/modal.slint";
+
+/// One question before something is thrown away: what it is, what goes
+/// with it, and the word on the button that does it. Rust fills it and
+/// says what the answer means; the sheet knows nothing of tracks or clips.
+export struct ConfirmData {
+ open: bool,
+ title: string,
+ message: string,
+ /// The button that goes ahead, in the danger tone: "Delete".
+ action: string,
+}
+
+// The confirmation sheet. Return goes ahead and Escape backs out, so a
+// question asked from the keyboard is answered from it; a click on the
+// scrim or the close backs out too.
+export component ConfirmDialog inherits Modal {
+ in property <ConfirmData> data;
+
+ callback confirmed();
+ callback dismissed();
+
+ open: root.data.open;
+ title: root.data.title;
+ glyph: Glyph.trash;
+ surface-width: 400px;
+
+ closed => { root.dismissed(); }
+
+ // The keys go to the sheet the moment it shows, not to whatever had
+ // focus under it.
+ changed open => {
+ if (root.open) {
+ keys.focus();
+ }
+ }
+
+ keys := FocusScope {
+ key-pressed(event) => {
+ if (event.text == Key.Escape) {
+ root.dismissed();
+ return accept;
+ }
+ if (event.text == Key.Return) {
+ root.confirmed();
+ return accept;
+ }
+ reject
+ }
+
+ VerticalLayout {
+ padding: 16px;
+ spacing: 16px;
+
+ Text {
+ text: root.data.message;
+ color: Theme.fg;
+ font-size: Theme.fs;
+ wrap: word-wrap;
+ }
+
+ HorizontalLayout {
+ alignment: end;
+ spacing: 8px;
+
+ Button {
+ label: I18n.t("common.cancel");
+ clicked => { root.dismissed(); }
+ }
+
+ Button {
+ danger: true;
+ label: root.data.action;
+ clicked => { root.confirmed(); }
+ }
+ }
+ }
+ }
+}