Skip to content

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

feat(settings): Language and Log level are a title with its dropdown at the far end

Jareer965e3fbd377c
diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slint
index 26d328c0..9995af59 100644
--- a/src/crates/concat/ui/dialogs/settings.slint
+++ b/src/crates/concat/ui/dialogs/settings.slint
@@ -698,14 +698,12 @@ export component SettingsDialog inherits Modal {
ruled: false;
first: true;
title: I18n.t("settings.language");
-
// Native names: whoever is stranded in a language they
// cannot read must still recognise their own in this list.
- Select {
- options: root.languages;
- current: root.data.language;
- changed(index) => { root.language-changed(index); }
- }
+ choices: root.languages;
+ choice: root.data.language;
+ open: false;
+ chose(index) => { root.language-changed(index); }
}
// What the log records. Normal is what a bug report needs
@@ -717,18 +715,16 @@ export component SettingsDialog inherits Modal {
ruled: false;
title: I18n.t("settings.logLevel");
hint: I18n.t("settings.logLevelHint");
-
- Select {
- options: [
- I18n.t("settings.logErrors"),
- I18n.t("settings.logWarnings"),
- I18n.t("settings.logNormal"),
- I18n.t("settings.logDebug"),
- I18n.t("settings.logEverything"),
- ];
- current: root.data.log-level;
- changed(index) => { root.log-level-changed(index); }
- }
+ choices: [
+ I18n.t("settings.logErrors"),
+ I18n.t("settings.logWarnings"),
+ I18n.t("settings.logNormal"),
+ I18n.t("settings.logDebug"),
+ I18n.t("settings.logEverything"),
+ ];
+ choice: root.data.log-level;
+ open: false;
+ chose(index) => { root.log-level-changed(index); }
}
// Off, a delete leaves its hole and a trim moves one edge.