Commit d069da75 authored by Lior Spach's avatar Lior Spach

le-italc-config: Refs #1420 Don't unconfig until user confirm operation

Signed-off-by: Lior Spach's avatarLior Spach <ls12@inf.ufpr.br>
parent 24d0308e
......@@ -89,11 +89,6 @@ if [ -f "$SCRIPT_MONO_PATH" -o -f "$SCRIPT_MULT_PATH" ]; then
\nTodas as configurações anteriores serão desfeitas" \
--ok-label="Sim" --cancel-label="Não"
[ $? -eq 1 ] && exit 0
if [ -f "$SCRIPT_MONO_PATH" ]; then
unconfig_monoterminal
else #Multiteminal
unconfig_multiterminal
fi
fi
#ASK: Is it multiterminal?
......@@ -143,6 +138,13 @@ zenity --question --title="Configurador do iTalc" \
--ok-label="Confirmar" --cancel-label="Cancelar"
[ "$?" = "1" ] && exit 0
#If confirmed, remove old configurations if necessary
if [ -f "$SCRIPT_MONO_PATH" ]; then
unconfig_monoterminal
elif [ -f "$SCRIPT_MULT_PATH" ]; then #Multiteminal
unconfig_multiterminal
fi
##===================================================================================================================##
##---START_FUNCTIONS-------------------------------------------------------------------------------------------------##
##===================================================================================================================##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment