Restarting PP when you press cancel when creating shortcuts

This commit is contained in:
2024-09-11 19:37:56 +05:00
parent 6d750ef870
commit 890af9424d
2 changed files with 12 additions and 3 deletions

View File

@ -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
}