aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/services/ConfigLoader.qml
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
committerKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
commit0cda8f13953d0f4cc6126d4810c04452cc3375b8 (patch)
tree3627d7b49135b1d98f018dccb019c8cefc1ff0e4 /config/quickshell/services/ConfigLoader.qml
parent1462996cc5256e6337eafc226423de5559214c7f (diff)
Refactored for better colour and font expose and cleaned up unused code
Diffstat (limited to 'config/quickshell/services/ConfigLoader.qml')
-rw-r--r--config/quickshell/services/ConfigLoader.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/quickshell/services/ConfigLoader.qml b/config/quickshell/services/ConfigLoader.qml
index 5f16bf55..d3fb4e26 100644
--- a/config/quickshell/services/ConfigLoader.qml
+++ b/config/quickshell/services/ConfigLoader.qml
@@ -72,7 +72,7 @@ Singleton {
let targetObject = ConfigOptions;
// Check if this is a font-related configuration
- if (keys[0] === "font" && typeof Appearance !== 'undefined') {
+ if (keys[0] === "font") {
targetObject = Appearance;
}
@@ -101,13 +101,12 @@ Singleton {
}
}
- console.log(parents.join("."));
console.log(`[ConfigLoader] Setting live config value: ${nestedKey} = ${convertedValue}`);
obj[keys[keys.length - 1]] = convertedValue;
}
function saveConfig() {
- const plainConfig = ObjectUtils.toPlainObject(ConfigOptions)
+ const plainConfig = ObjectUtils.toPlainObject(ConfigOptions);
Hyprland.dispatch(`exec echo '${StringUtils.shellSingleQuoteEscape(JSON.stringify(plainConfig, null, 2))}' > '${root.filePath}'`)
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage