sort tasks
This commit is contained in:
parent
822df27ac8
commit
250c5b5c5b
|
@ -1,6 +1,8 @@
|
||||||
package screen
|
package screen
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"sort"
|
||||||
|
|
||||||
"fyne.io/fyne/v2"
|
"fyne.io/fyne/v2"
|
||||||
"fyne.io/fyne/v2/container"
|
"fyne.io/fyne/v2/container"
|
||||||
"fyne.io/fyne/v2/data/binding"
|
"fyne.io/fyne/v2/data/binding"
|
||||||
|
@ -37,6 +39,7 @@ func (t *Tasks) Refresh(state State) {
|
||||||
for _, t := range t.tasks {
|
for _, t := range t.tasks {
|
||||||
tls = append(tls, t.Action)
|
tls = append(tls, t.Action)
|
||||||
}
|
}
|
||||||
|
sort.Strings(tls)
|
||||||
t.taskLabels.Set(tls)
|
t.taskLabels.Set(tls)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue