Added a validation for when the quick panel is cancelled.
This commit is contained in:
parent
2e78664c55
commit
87cecce263
5
beau.py
5
beau.py
|
|
@ -51,12 +51,13 @@ class BeauCommand(sublime_plugin.TextCommand):
|
|||
self.requests.append([method, alias, endpoint])
|
||||
requests.append([title, description])
|
||||
|
||||
|
||||
|
||||
proc.wait()
|
||||
active_window.show_quick_panel(requests, self.on_done)
|
||||
|
||||
def on_done(self, index):
|
||||
if index == -1:
|
||||
return
|
||||
|
||||
active_window = sublime.active_window()
|
||||
active_view = active_window.active_view()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue