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")" name="$(echo | sxmo_dmenu_with_kb.sh -c -l 2 -p "$icon_usr Name")"
number= number=
while [ -z "$number" ]; do 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")" number="$(valid_number "$number")"
done done
@ -66,7 +66,7 @@ editcontactnumber() {
while [ -z "$PICKED" ]; do while [ -z "$PICKED" ]; do
PICKED="$( PICKED="$(
echo "$ENTRIES" | 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 if echo "$PICKED" | grep -q "(Old number)$"; then
editcontact "$1" editcontact "$1"

Loading…
Cancel
Save