Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sort: Move Connnect/Disconnect All to the bottom

Because it interferes with autocomplete
  • Loading branch information...
commit 3cc9d235a9e38e04d3a89c10d7faab6ed5e90031 1 parent 1409c80
@andrewschleifer authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 info.plist
View
8 info.plist
@@ -43,10 +43,6 @@ FILTER="{query}"
if [ -z "$FILTER" ]; then FILTER=.;fi
echo '<?xml version="1.0"?><items>'
-echo '<item uid="'${STAMP}'" arg="connectall"><title>Connect All</title><subtitle>Connect to all defined networks</subtitle><icon>icon.png</icon><valid>yes</valid></item>'
-
-echo '<item uid="'${STAMP}'" arg="disconnectall"><title>Disconnect All</title><subtitle>Disconnect from all connected networks</subtitle><icon>icon.png</icon><valid>yes</valid></item>'
-
osascript -sh connections.ascr | tr "\r" "\n" | grep -i $FILTER | while read LINE; do
echo "<item uid=\"${STAMP}\" arg=\"${LINE}\"><title>${LINE}</title>"
if [[ $(osascript -sh state.ascr "${LINE}" | tr "\r" "\n" | grep -i .) == "Connected" ]]; then
@@ -57,6 +53,10 @@ osascript -sh connections.ascr | tr "\r" "\n" | grep -i $FILTER | while read LIN
echo "<icon>icon.png</icon><valid>yes</valid></item>"
done
+echo '<item uid="'${STAMP}'" arg="connectall"><title>Connect All</title><subtitle>Connect to all defined networks</subtitle><icon>icon.png</icon><valid>yes</valid></item>'
+
+echo '<item uid="'${STAMP}'" arg="disconnectall"><title>Disconnect All</title><subtitle>Disconnect from all connected networks</subtitle><icon>icon.png</icon><valid>yes</valid></item>'
+
echo '</items>'
</string>
<key>subtext</key>
Please sign in to comment.
Something went wrong with that request. Please try again.