diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 8aced369..da2a69bf 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -5478,16 +5478,12 @@ portwine_create_shortcut () { if [[ "$PW_NO_RESTART_PPDB" != "1" ]] ; then print_info "Restarting PP..." - if [[ "${PW_GUI_START}" == "NOTEBOOK" ]] ; then - unset PW_YAD_FORM_TAB - fi + [[ "$PW_GUI_START" == "NOTEBOOK" ]] && unset PW_YAD_FORM_TAB restart_pp fi elif [[ "$PW_YAD_OUT" == "2" ]] ; then print_info "Restarting PP..." - if [[ "${PW_GUI_START}" == "NOTEBOOK" ]] ; then - unset PW_YAD_FORM_TAB - fi + [[ "${PW_GUI_START}" == "NOTEBOOK" ]] && unset PW_YAD_FORM_TAB restart_pp fi } @@ -5566,7 +5562,6 @@ pw_auto_create_shortcut () { PORTPROTON_NAME="$link_name" export portwine_exe="$exe_path" resize_png "$portwine_exe" "${PORTPROTON_NAME}" "128" - export PW_NO_RESTART_PPDB=1 portwine_create_shortcut fi done