We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca1790 commit 9eb0116Copy full SHA for 9eb0116
thonnycontrib/quecpython/view.py
@@ -208,7 +208,8 @@ def get_validated_com_port(self, firmware_file_path):
208
209
def ask_for_firmware_file_path(self):
210
firmware_file_path = filedialog.askopenfilename(title='请选择文件')
211
- self.firmware_file_path_stringvar.set(firmware_file_path)
+ if firmware_file_path:
212
+ self.firmware_file_path_stringvar.set(firmware_file_path)
213
214
def on_fw_file_path_write(self, *args, **kwargs):
215
firmware_file_path = self.firmware_file_path_stringvar.get()
0 commit comments