saveSortSettings saves current sorting preferences
()
| 652 | |
| 653 | // saveSortSettings saves current sorting preferences |
| 654 | func (fp *FilePicker) saveSortSettings() { |
| 655 | sv := fp.filesTable |
| 656 | if sv == nil { |
| 657 | return |
| 658 | } |
| 659 | SystemSettings.FilePickerSort = sv.sortFieldName() |
| 660 | // fmt.Printf("sort: %v\n", Settings.FilePickerSort) |
| 661 | ErrorSnackbar(fp, SaveSettings(SystemSettings), "Error saving settings") |
| 662 | } |
| 663 | |
| 664 | // fileComplete finds the possible completions for the file field |
| 665 | func (fp *FilePicker) fileComplete(data any, text string, posLine, posChar int) (md complete.Matches) { |
no test coverage detected