1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

fix duplicated qt6ct sections

This commit is contained in:
bbedward
2025-10-30 13:53:47 -04:00
parent 9215985335
commit 325e3bc19b

View File

@@ -21,11 +21,11 @@ apply_qt_colors() {
local config_file="$1"
if [ -f "$config_file" ]; then
if grep -q '^\\[Appearance\\]' "$config_file"; then
if grep -q '^\[Appearance\]' "$config_file"; then
if grep -q '^custom_palette=' "$config_file"; then
sed -i 's/^custom_palette=.*/custom_palette=true/' "$config_file"
else
sed -i '/^\\[Appearance\\]/a custom_palette=true' "$config_file"
sed -i '/^\[Appearance\]/a custom_palette=true' "$config_file"
fi
if grep -q '^color_scheme_path=' "$config_file"; then