Do not enforce the matching recent number

Prefer the typed value over the first matching one.
master
Stacy Harper 3 years ago
parent c928097412
commit af35294af6
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 4
      scripts/core/sxmo_contactmenu.sh

@ -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"

Loading…
Cancel
Save