mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -67,7 +67,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
if (include) {
|
||||
if (client.path) validClients.push(client.path);
|
||||
if (client.path)
|
||||
validClients.push(client.path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}"`);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user