Restarting PP when you press cancel when creating shortcuts
This commit is contained in:
@ -4942,10 +4942,19 @@ portwine_create_shortcut () {
|
||||
|
||||
if [[ "$PW_NO_RESTART_PPDB" != "1" ]] ; then
|
||||
print_info "Restarting PP..."
|
||||
unset PW_YAD_FORM_TAB
|
||||
if [[ "${PW_GUI_START}" == "NOTEBOOK" ]] ; then
|
||||
unset PW_YAD_FORM_TAB
|
||||
fi
|
||||
/usr/bin/env bash -c ${pw_full_command_line[*]} &
|
||||
exit 0
|
||||
fi
|
||||
elif [[ "$PW_YAD_OUT" == "2" ]] ; then
|
||||
print_info "Restarting PP..."
|
||||
if [[ "${PW_GUI_START}" == "NOTEBOOK" ]] ; then
|
||||
unset PW_YAD_FORM_TAB
|
||||
fi
|
||||
/usr/bin/env bash -c ${pw_full_command_line[*]} &
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user