Skip to content

Commit fd48974

Browse files
author
“Buğra
committed
🆕 No error anymore when you did not select anything
2 parents e61f8ab + cc4fa9a commit fd48974

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎micropython.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sublime
22
import sublime_plugin
33

4+
import os
45
import sys
56
from .modules.ampy import ampy, pyboard
67
from textwrap import indent
@@ -67,6 +68,9 @@ def run(self):
6768
self.window.show_quick_panel(self.files, self.selected)
6869

6970
def selected(self, id):
71+
if id == -1:
72+
return
73+
7074
file_name = self.files[id]
7175
local_files = os.listdir(self.project_path)
7276

0 commit comments

Comments
 (0)