MCPcopy Create free account
hub / github.com/cogentcore/core / saveSortSettings

Method saveSortSettings

core/filepicker.go:654–662  ·  view source on GitHub ↗

saveSortSettings saves current sorting preferences

()

Source from the content-addressed store, hash-verified

652
653// saveSortSettings saves current sorting preferences
654func (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
665func (fp *FilePicker) fileComplete(data any, text string, posLine, posChar int) (md complete.Matches) {

Callers 1

fileSelectMethod · 0.95

Calls 3

ErrorSnackbarFunction · 0.85
SaveSettingsFunction · 0.85
sortFieldNameMethod · 0.80

Tested by

no test coverage detected