Skip to content

Commit e3e0ed5

Browse files
committed
deal with cancel
1 parent a4b4138 commit e3e0ed5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RubyMotionBuilder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def run(self):
133133
self.window.show_quick_panel(self.dirs, self.on_done)
134134

135135
def on_done(self, picked):
136+
if picked == -1:
137+
return
136138
rb_name = os.path.join(this_dir, "rubymotion_completion_generator.rb")
137139
bridge_support_dir = self.dirs[picked]
138140
self.window.run_command("exec", {"cmd": ["ruby", rb_name, bridge_support_dir], "working_dir": this_dir})

0 commit comments

Comments
 (0)