From 0fa47e8094a708e74cc4bdf9730611b283b715ba Mon Sep 17 00:00:00 2001 From: Botspot Date: Sat, 13 Feb 2021 10:04:12 -0600 Subject: [PATCH] add view credits button --- gui | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gui b/gui index abe99fa..58f27d3 100755 --- a/gui +++ b/gui @@ -308,6 +308,9 @@ $installedpackages" if [ "$(cat "${DIRECTORY}/data/settings/Show Edit button")" == 'Yes' ];then echo "--button=Edit!${DIRECTORY}/icons/edit.png:10" fi + if [ -f "${DIRECTORY}/apps/${output}/credits" ];then + echo "--button=Credits!${DIRECTORY}/icons/credits.png:12" + fi if [ ! -f "${DIRECTORY}/data/status/${output}" ];then #Taking a chance here. If status file is nonexistent, assume uninstalled. echo "--button=Install!${DIRECTORY}/icons/install.png:4" @@ -386,6 +389,13 @@ $installedpackages" elif [ $button == 10 ];then echo "edit $output" "${DIRECTORY}/createapp" "$output" + elif [ $button == 12 ];then + echo "credits of $output" + cat "${DIRECTORY}/apps/${output}/credits" | yad --text-info --fontname=12 --wrap \ + --image="${DIRECTORY}/apps/${output}/icon-64.png" --image-on-top \ + --title="Credits of ${output}" --window-icon="${DIRECTORY}/icons/logo.png" --center --width=700 --height=300 \ + --button=Close!"${DIRECTORY}/icons/exit.png":0 + else echo 'unknown button. Exiting now.' exit 0