Skip to content

Commit e98e201

Browse files
committed
v2.3.58
- Xorg configuration tool GUI misbehaviour as following: - When detecting double quote for DPI value when the value only is changed. Fixed. - When checking value for metamodes when the value is changed. Fixed.
1 parent 6eca818 commit e98e201

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zenvidia

+3-3
Original file line numberDiff line numberDiff line change
@@ -5402,7 +5402,7 @@ x_yad_extract(){
54025402
value=$(cut -d'|' -f4 <<< $options)
54035403
# define if value exist and is quoted. Then set quote.
54045404
[ "$value" != '' ] && a='"' || a=''
5405-
if [[ "$value" =~ [0-9]{2}$|[0-9]\ [0-9]$ ]]; then
5405+
if [[ "$value" =~ [0-9]{2}$|[0-9]\ [0-9]$ ]]&&[ "$option" != "DPI" ]; then
54065406
a=''
54075407
fi
54085408
# for log only
@@ -5413,7 +5413,7 @@ x_yad_extract(){
54135413
option_type_c=$(cut -d'|' -f2 <<< $line_c)
54145414
option_c=$(cut -d'|' -f3 <<< $line_c)
54155415
value_c=$(cut -d'|' -f4 <<< $line_c)
5416-
if [ $(grep -c "$option_type_c.*$option_c.*$value_c" $xorg_cfg_mod ) -gt 0 ]; then
5416+
if [ $(grep -c "$option_type_c.*$option_c" $xorg_cfg_mod ) -gt 0 ]; then
54175417
if [ $(grep -c "$options" $device_section_file) -eq 0 ]; then
54185418
if [ $(grep -c "$option_def" $device_section_file) -gt 0 ]; then
54195419
if [[ "$option_type_c" =~ Option|Screen|Inactive ]]; then
@@ -5423,7 +5423,7 @@ x_yad_extract(){
54235423
# write 2 or 1 arguments line.
54245424
option_line_c=" $option_c\t${a}$value_c${a}"
54255425
fi
5426-
log_on='FALSE to TRUE' # we write
5426+
[ ${value} != ${value_c} ] && log_on='VALUE MODIFIED' || log_on='FALSE to TRUE' # we write
54275427
sed -Ei "s|^[#]?.*${option_type}.*${b}${option}${b}.*$|${option_line_c}|" $xorg_cfg_mod
54285428
else
54295429
# FALSE

0 commit comments

Comments
 (0)