From 7d9804ce04f9dbf11009a48a131779b270fdd734 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Tue, 30 May 2023 23:32:56 +0100 Subject: [PATCH] fix: Changing language will trigger correct select dialog. Also fixed first start of the app with choosing language at first. --- data_from_portwine/scripts/lang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data_from_portwine/scripts/lang b/data_from_portwine/scripts/lang index be4ce74d..1ed72709 100755 --- a/data_from_portwine/scripts/lang +++ b/data_from_portwine/scripts/lang @@ -4,6 +4,11 @@ if [[ -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ]] ; then read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc" export update_loc=${update_loc} +else + SET_LANG=`zenity --title "LAUNGUAGE" --text "Select the language" --list --radiolist \ + --column="Set:" --column "Choose language:" TRUE "RUS" FALSE "ENG" ` + echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc" + export update_loc=${SET_LANG} fi if [ "${update_loc}" = "RUS" ] @@ -337,9 +342,4 @@ then export loc_edit_db="Edit database file for" export loc_find_d3dadapter9_error="not found in the system.\nInstall it and try again." -else - SET_LANG=`zenity --title "LAUNGUAGE" --text "Select the language" --list --radiolist \ - --column="Set:" --column "Choose language:" TRUE "RUS" FALSE "ENG" ` - echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc" - exit 0 fi