Matugen: fix scheme loading

This commit is contained in:
Ly-sec
2025-10-03 23:38:12 +02:00
parent 79e74d6743
commit cee1d86038
2 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ ColumnLayout {
// Helper function to extract scheme name from path
function extractSchemeName(schemePath) {
var pathParts = schemePath.split("/")
var schemeName = pathParts[pathParts.length - 2] // Get parent directory name
var filename = pathParts[pathParts.length - 1] // Get filename
var schemeName = filename.replace(".json", "") // Remove .json extension
// Convert folder names back to display names
if (schemeName === "Noctalia-default") {