From 8700a2c88d30513ae096e0f2dee7a5137d67fff7 Mon Sep 17 00:00:00 2001 From: castro-fidel <tergoevm@gmail.com> Date: Wed, 25 Aug 2021 23:47:59 +0300 Subject: [PATCH] ###Scripts version 2002### --- data_from_portwine/changelog | 3 +++ data_from_portwine/scripts/functions_helper | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/data_from_portwine/changelog b/data_from_portwine/changelog index 7fd648a..e977364 100644 --- a/data_from_portwine/changelog +++ b/data_from_portwine/changelog @@ -9,6 +9,9 @@ * добавить комментарии описывающие функционал скриптов * заниматься только развитием проекта за счет вашей подписки на https://boosty.to/portwine-linux.ru ----------------------------------------- +###Scripts version 2002### +* HOTFIX для настройки db файлов + ###Scripts version 2001### * добавлен графический интерфейс для настройки db файлов diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index fbe1625..60dcc3e 100644 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -618,8 +618,11 @@ pw_gui_for_edit_db () { output_yad_edit_db=`"${pw_yad}" --title "EDIT_DB" --text-align=center --text "Change settings in database file for ${PORTWINE_DB}\n" \ --columns=4 --form --separator=" " --borders=10 --center ${ADD_CHK_BOX_EDIT_DB} ` YAD_STATUS="$?" - [ "$YAD_STATUS" == "1" ] && exit 0 - [ "$YAD_STATUS" == "252" ] && xdg-open "${PORTWINE_DB_FILE}" & exit 0 + if [ "$YAD_STATUS" == "1" ] ; then exit 0 + elif [ "$YAD_STATUS" == "252" ] ; then + xdg-open "${PORTWINE_DB_FILE}" & + exit 0 + fi export output_yad_edit_db=($output_yad_edit_db) export bool_from_yad=0 edit_db_field_read () { -- 2.24.1