Skip to content

Commit b882fe7

Browse files
authored
Merge pull request #2 from esp-cpp/feature/save-dialog-reuse-directory
feat: Allow save dialog (`Export UART Data`) to use recent directory context
2 parents a0e1283 + 492e37a commit b882fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def __on_auto_clear_plot_action__(self):
656656
self.auto_clear_plot_on_header_change = False
657657

658658
def __save_received_data_to_file__(self):
659-
name = QtWidgets.QFileDialog.getSaveFileName(self, "Save file", ".", "*.txt;;*")
659+
name = QFileDialog.getSaveFileName(self, caption="Save file", filter="*.txt;;*")
660660
if len(name) > 0 and name[0] != '':
661661
with open(name[0], "w") as file:
662662
file.write(self.output_editor.toPlainText())

0 commit comments

Comments
 (0)