mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(TemplatesSubTab): Fixed a bug which prevented qml format to run correctly
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user