fix(TemplatesSubTab): Fixed a bug which prevented qml format to run correctly

This commit is contained in:
Spyridon Siarapis
2026-03-28 12:10:29 +01:00
parent ed1a2b54de
commit 348ccbf0ed
@@ -13,16 +13,17 @@ ColumnLayout {
spacing: Style.marginL
Layout.fillWidth: true
// Helper to format path description
function getDesc(fallbackPath) {
return I18n.tr("panels.color-scheme.templates-write-path", {
"filepath": fallbackPath
});
}
// Build a combined list of all available templates from TemplateRegistry, sorted alphabetically
readonly property var allTemplates: {
var templates = [];
// Helper to format path description
function getDesc(fallbackPath) {
return I18n.tr("panels.color-scheme.templates-write-path", {
"filepath": fallbackPath
});
}
// Add terminals with category "terminal"
for (var i = 0; i < TemplateRegistry.terminals.length; i++) {