Merge branch 'fix-for-portwine_missing_shortcut' of github.com:Htylol/PortWINE into Htylol-fix-for-portwine_missing_shortcut

This commit is contained in:
Mikhail Tergoev 2024-11-08 18:37:22 +03:00
commit 1aca1ec017
2 changed files with 13 additions and 4 deletions

@ -6136,9 +6136,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
}

@ -709,7 +709,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
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)