Use editbox
This commit is contained in:
parent
6659501337
commit
75b72cb787
|
@ -437,9 +437,9 @@ function refresh_gpg_keys {
|
|||
function add_gpg_key {
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --title $"Add someone's PGP/GPG key" \
|
||||
dialog --title $"Enter email address, Key ID or full key below" \
|
||||
--backtitle $"Freedombone User Control Panel" \
|
||||
--inputbox $"Enter their email address, Key ID or full key below" 8 999999 2>$data
|
||||
--editbox $data 8 60
|
||||
sel=$?
|
||||
case $sel in
|
||||
0)
|
||||
|
@ -459,7 +459,6 @@ function add_gpg_key {
|
|||
address_is_valid=1
|
||||
fi
|
||||
|
||||
|
||||
if [ $address_is_valid ]; then
|
||||
clear
|
||||
if [[ "$ADD_EMAIL_ADDRESS" == *"$publicstr"* ]]; then
|
||||
|
@ -479,6 +478,7 @@ function add_gpg_key {
|
|||
fi
|
||||
;;
|
||||
esac
|
||||
rm $data
|
||||
}
|
||||
|
||||
function remove_gpg_key {
|
||||
|
|
Loading…
Reference in New Issue