Fix error message if cancel DPI option
This commit is contained in:
parent
7192d5d295
commit
705d6ebeb5
|
@ -213,6 +213,9 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/mouse-dpi.png" ] ; then
|
||||
dpi_number=$(zenity --entry --title "Set DPI (from 50 to 8000)" --window-icon=${iconPath} --text "Enter DPI number (from 50 to 8000):" --entry-text "800")
|
||||
if [ -z ${dpi_number} ] ; then
|
||||
echo > /dev/null
|
||||
else
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Setting DPI to ${dpi_number}" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py lightsync dpi ${dpi_number}
|
||||
|
@ -223,6 +226,7 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-lightsync ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Device not found or connected"
|
||||
fi
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/light-off.png" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-lightsync ${VERSION} (${M_DATE})" --text "Turning off the light on the mouse" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
|
|
|
@ -191,6 +191,9 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/mouse-dpi.png" ] ; then
|
||||
dpi_number=$(zenity --entry --title "Set DPI (from 200 to 8000)" --window-icon=${iconPath} --text "Enter DPI number (from 200 to 8000):" --entry-text "800")
|
||||
if [ -z ${dpi_number} ] ; then
|
||||
echo > /dev/null
|
||||
else
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Setting DPI to ${dpi_number}" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
g203-led.py dpi ${dpi_number}
|
||||
|
@ -201,6 +204,7 @@ while [ ${showMenu} -eq 0 ] ; do
|
|||
zenity --title "zenidrv-g203-prodigy ${VERSION} ($M_DATE)" --error --window-icon=${iconPath} --width=280 \
|
||||
--text "Device not found or connected"
|
||||
fi
|
||||
fi
|
||||
elif [ "${opcion}" == "${imagesPath}/light-off.png" ] ; then
|
||||
sleep 2 | zenity --progress --title "zenidrv-g203-prodigy ${VERSION} (${M_DATE})" --text "Turning off the light on the mouse" \
|
||||
--window-icon=${iconPath} --pulsate --no-cancel --auto-close
|
||||
|
|
Loading…
Reference in New Issue
Block a user