diff --git a/data_from_portwine/changelog b/data_from_portwine/changelog index 7fd648ac91ff9ec558b8678a28ceb71c86370680..e977364543cd482d082d33522dcb4a30b211b322 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 fbe16255a08d3ccd102fe0bcb929d66285c6ac8d..60dcc3e40e059d1ab0afe2f0b889c4e5ade325bc 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 () {