Skip to content

Commit 492e37a

Browse files
committed
feat: Allow save dialog (Export UART Data) to use recent directory context
* Remove additional directory argument (which was `"."`) so that the save file dialog uses the same directory context as the rest of the file dialogs
1 parent a0e1283 commit 492e37a

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)