Fix selecting one db file from several
This commit is contained in:
parent
a7507ed8da
commit
9aaaca66cf
@ -883,6 +883,8 @@ pw_init_db () {
|
||||
PORTWINE_DB_FILE="${PORT_SCRIPTS_PATH}/portwine_db"/`"${pw_yad_v12_3}" --text-align=center --text "${PW_SELECTION_DB_LOC}" --borders=15 --form \
|
||||
--title "Database file selection..." --window-icon="$PW_GUI_ICON_PATH/port_proton.png" --form --separator="" \
|
||||
--field="DB FILE: :CB" "${ADD_CB_DBFILE}" 2>/dev/null`
|
||||
try_copy_file "${PORTWINE_DB_FILE}" "${portwine_exe}".ppdb
|
||||
export PORTWINE_DB_FILE="${portwine_exe}".ppdb
|
||||
if [[ "$?" == "1" || "$?" == "252" ]] ; then exit 0 ; fi
|
||||
elif [[ `echo "$PW_FIND_DB_FILE" | wc -l` -eq 1 ]] ; then
|
||||
PORTWINE_DB_FILE="${PW_FIND_DB_FILE}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user