Merge pull request #2335 from spiros132/main

fix(TemplatesSubTab): Fixed a bug which prevented the qmlformat to run correctly
This commit is contained in:
Lysec
2026-03-28 12:15:21 +01:00
committed by GitHub
@@ -13,17 +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++) {
var t = TemplateRegistry.terminals[i];