Commit 16dc5741 authored by Vladislav's avatar Vladislav

Fixed bug for portwine_missing_shortcut

parent 8f160515
......@@ -6030,9 +6030,12 @@ portwine_missing_shortcut () {
if [[ $? -eq "0" ]] ; then
portwine_delete_shortcut
fi
if [[ -n "$TAB_MAIN_MENU" ]]
then restart_pp
else exit 0
if [[ -n $AI_SKIP ]]
then
unset TAB_MAIN_MENU
restart_pp
else
exit 0
fi
}
......
......@@ -702,7 +702,13 @@ else
PW_GENERATE_BUTTONS+="--field= $(print_wrapped "${PW_DESKTOP_FILES_SHOW//".desktop"/""}" "25" "...")!${PW_NAME_D_ICON_48}.png!:FBTNR%@bash -c \"button_click --desktop "${PW_DESKTOP_FILES// /#@_@#}"\"%"
done
MAIN_GUI_ROWS="$(( ( AMOUNT_GENERATE_BUTTONS + 1 ) / MAIN_GUI_COLUMNS + 1 ))"
if [[ $AMOUNT_GENERATE_BUTTONS == 1 ]] ; then
MAIN_GUI_ROWS=1
elif (( AMOUNT_GENERATE_BUTTONS <= 5 )) ; then
MAIN_GUI_ROWS=2
else
MAIN_GUI_ROWS="$(( ( AMOUNT_GENERATE_BUTTONS + 1 ) / MAIN_GUI_COLUMNS + 1 ))"
fi
if [[ -z $PW_DESKTOP_FILES ]]
then export PW_GUI_SORT_TABS=(1 2 3 4 5)
......
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