Skip to content

Commit

Permalink
Fix missing .json file extension when exporting notes
Browse files Browse the repository at this point in the history
The UI dialog says "Filename (without .json)" and the default value
doesn't have a .json suffix, so we are supposed to automatically
append the file extension (as we already do for automatic backups).

Fixes FossifyOrg#13.
  • Loading branch information
tom93 committed Jan 27, 2024
1 parent 33969d2 commit c5a27ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class SettingsActivity : SimpleActivity() {
private fun setupNotesExport() {
binding.settingsExportNotesHolder.setOnClickListener {
ExportNotesDialog(this) { filename ->
saveDocument.launch(filename)
saveDocument.launch("$filename.json")
}
}
}
Expand Down

0 comments on commit c5a27ee

Please sign in to comment.