From 07ffc0d4b93d75ad98840fd99bfaa5bb087980e9 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Thu, 23 Jan 2025 20:41:03 -0600 Subject: [PATCH] donation click adds runonce hash for later use maybe --- manage | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/manage b/manage index a1f4def3c1..9ba081ebc6 100755 --- a/manage +++ b/manage @@ -514,9 +514,15 @@ ${DIRECTORY}/icons/none-1.png export gman_message='to theofficialgman (notable Pi-Apps contributor)' summary_window_click_function() { if [ "$5" == "$botspot_message" ];then - xdg-open 'https://github.com/sponsors/botspot' + xdg-open 'https://github.com/sponsors/botspot' & + + #remember that donation link was clicked - opts out of any popups introduced in the future + #"$(echo 'botspot donation click' | sha1sum | awk '{print $1}')" + if ! grep -q "8a780b08ac20332b897ecb399b25f4622bb31341" "${DIRECTORY}/data/runonce_hashes" ;then + echo "8a780b08ac20332b897ecb399b25f4622bb31341" >> "${DIRECTORY}/data/runonce_hashes" + fi elif [ "$5" == "$gman_message" ];then - xdg-open 'https://github.com/sponsors/theofficialgman' + xdg-open 'https://github.com/sponsors/theofficialgman' & fi } export -f summary_window_click_function