Do not enforce the matching recent number

Prefer the typed value over the first matching one.
This commit is contained in:
Stacy Harper 2021-06-18 10:39:15 +02:00
parent c928097412
commit af35294af6
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65

View file

@ -30,7 +30,7 @@ newcontact() {
name="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_usr Name")"
number=
while [ -z "$number" ]; do
number="$(sxmo_contacts.sh --unknown | sxmo_dmenu_with_kb.sh -c -l 10 -p "$icon_phl Number")"
number="$(sxmo_contacts.sh --unknown | sxmo_dmenu_with_kb.sh -t -c -l 10 -p "$icon_phl Number")"
number="$(valid_number "$number")"
done
@ -66,7 +66,7 @@ editcontactnumber() {
while [ -z "$PICKED" ]; do
PICKED="$(
echo "$ENTRIES" |
sxmo_dmenu_with_kb.sh -c -l 10 -p "$icon_edt Edit Contact"
sxmo_dmenu_with_kb.sh -t -c -l 10 -p "$icon_edt Edit Contact"
)"
if echo "$PICKED" | grep -q "(Old number)$"; then
editcontact "$1"