forked from Shinonome/dots-hyprland
fix wallpaper not switching when setting a custom accent color
This commit is contained in:
@@ -406,6 +406,12 @@ main() {
|
|||||||
imgpath="$(kdialog --getopenfilename . --title 'Choose wallpaper')"
|
imgpath="$(kdialog --getopenfilename . --title 'Choose wallpaper')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$imgpath" && -z "$noswitch_flag" ]]; then
|
||||||
|
set_accent_color ""
|
||||||
|
color_flag=""
|
||||||
|
color=""
|
||||||
|
fi
|
||||||
|
|
||||||
# If type_flag is 'auto', detect scheme type from image (after imgpath is set)
|
# If type_flag is 'auto', detect scheme type from image (after imgpath is set)
|
||||||
if [[ "$type_flag" == "auto" ]]; then
|
if [[ "$type_flag" == "auto" ]]; then
|
||||||
if [[ -n "$imgpath" && -f "$imgpath" ]]; then
|
if [[ -n "$imgpath" && -f "$imgpath" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user