Commit 890af942 authored by Vladislav's avatar Vladislav

Restarting PP when you press cancel when creating shortcuts

parent 6d750ef8
......@@ -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
}
......
......@@ -601,7 +601,7 @@ if [[ -f "${portwine_exe}" ]] ; then
2>/dev/null &
if [[ "${PW_YAD_FORM_TAB}" == "1" ]] \
&& [[ ! -z "${TAB_START}" ]]
&& [[ -n "${TAB_START}" ]]
then
export TAB_START="2"
unset PW_YAD_FORM_TAB
......@@ -655,7 +655,7 @@ if [[ -f "${portwine_exe}" ]] ; then
--button="$(gettext "LAUNCH")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(gettext "Run file ...")":106 2>/dev/null
PW_YAD_SET="$?"
fi
[[ ! -z "$PW_YAD_SET" ]] && case "$PW_YAD_SET" in
[[ -n "$PW_YAD_SET" ]] && case "$PW_YAD_SET" in
128)
if [[ "${PW_GUI_START}" == "NOTEBOOK" ]] ; then
unset PW_YAD_FORM_TAB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment