Skip to content

Commit

Permalink
DFU file dialog fixed for Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultrawipf committed Jan 4, 2022
1 parent 1c3a06c commit 3c886ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfu_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def initUi(self):

def fileClicked(self):
dlg = QFileDialog()
dlg.setFileMode(QFileDialog.ExistingFile)
dlg.setFileMode(QFileDialog.FileMode.ExistingFile)
dlg.setNameFilters(["Firmware files (*.hex *.dfu)","DFU files (*.dfu)","Intel hex files (*.hex)"])
if dlg.exec():
filenames = dlg.selectedFiles()
Expand Down

0 comments on commit 3c886ae

Please sign in to comment.