This commit is contained in:
Lemmy
2026-02-02 20:27:42 -05:00
parent eb837e17ba
commit feb65ad8b2
3 changed files with 21 additions and 12 deletions
@@ -67,7 +67,8 @@ ColumnLayout {
}
if (include) {
if (client.path) validClients.push(client.path);
if (client.path)
validClients.push(client.path);
}
}
+5 -5
View File
@@ -248,11 +248,11 @@ Singleton {
var resolvedPaths = TemplateRegistry.resolvedCodeClientPaths(client.name);
if (isCodeClientEnabled(client.name) && resolvedPaths.length > 0) {
resolvedPaths.forEach((resolvedPath, pathIndex) => {
var suffix = resolvedPaths.length > 1 ? `_${pathIndex}` : "";
lines.push(`\n[templates.code_${client.name}${suffix}]`);
lines.push(`input_path = "${Quickshell.shellDir}/Assets/Templates/${app.input}"`);
lines.push(`output_path = "${resolvedPath}"`);
});
var suffix = resolvedPaths.length > 1 ? `_${pathIndex}` : "";
lines.push(`\n[templates.code_${client.name}${suffix}]`);
lines.push(`input_path = "${Quickshell.shellDir}/Assets/Templates/${app.input}"`);
lines.push(`output_path = "${resolvedPath}"`);
});
}
});
}
+14 -6
View File
@@ -405,8 +405,10 @@ Singleton {
// Get resolved theme paths for a code client (returns array of all matching paths)
function resolvedCodeClientPaths(clientName) {
if (clientName === "code") return resolvedCodePaths;
if (clientName === "codium") return resolvedCodiumPaths;
if (clientName === "code")
return resolvedCodePaths;
if (clientName === "codium")
return resolvedCodiumPaths;
return [];
}
@@ -445,10 +447,13 @@ Singleton {
stdout: SplitParser {
onRead: data => {
var line = data.trim();
if (line) codeResolverProcess.paths.push(line);
if (line)
codeResolverProcess.paths.push(line);
}
}
onExited: { root.resolvedCodePaths = paths; }
onExited: {
root.resolvedCodePaths = paths;
}
}
Process {
@@ -459,10 +464,13 @@ Singleton {
stdout: SplitParser {
onRead: data => {
var line = data.trim();
if (line) codiumResolverProcess.paths.push(line);
if (line)
codiumResolverProcess.paths.push(line);
}
}
onExited: { root.resolvedCodiumPaths = paths; }
onExited: {
root.resolvedCodiumPaths = paths;
}
}
// Build user templates TOML content
function buildUserTemplatesToml() {