Skip to content

Commit b950269

Browse files
committed
Update custom command terminal logic
1 parent 3208dbc commit b950269

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ except:
26902690
<key>matchmode</key>
26912691
<integer>0</integer>
26922692
<key>matchstring</key>
2693-
<string>none</string>
2693+
<string>cmd</string>
26942694
</dict>
26952695
<key>type</key>
26962696
<string>alfred.workflow.utility.filter</string>
@@ -2852,7 +2852,7 @@ print('{0} -s {1} {2}'.format(adb_path, serial, cmd))</string>
28522852
<key>matchmode</key>
28532853
<integer>0</integer>
28542854
<key>matchstring</key>
2855-
<string>cmd</string>
2855+
<string>none</string>
28562856
</dict>
28572857
<key>type</key>
28582858
<string>alfred.workflow.utility.filter</string>

show_device_options.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,8 @@ def main(wf):
147147
subtitle="adb " + arg,
148148
arg="<adb>" + arg,
149149
valid=True)
150-
if arg.strip().lower() == "shell":
151-
it.setvar('mod', 'cmd')
152-
else:
153-
it.setvar('mod', 'none')
154-
m = it.add_modifier('cmd', 'Run in terminal: adb ' + arg)
150+
it.setvar('mod', 'none')
151+
m = it.add_modifier('cmd', 'Run without opening terminal')
155152
m.setvar('mod', 'cmd')
156153

157154

0 commit comments

Comments
 (0)