Skip to content

Commit

Permalink
update to more core cleanup changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 9, 2024
1 parent c6c83b9 commit 170de4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions code/findpanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"time"

"cogentcore.org/core/base/fileinfo"
"cogentcore.org/core/base/stringsx"
"cogentcore.org/core/core"
"cogentcore.org/core/events"
"cogentcore.org/core/filetree"
Expand Down Expand Up @@ -404,7 +405,7 @@ func (fv *FindPanel) makeFindToolbar(p *tree.Plan) {
fvtv.Buffer.NewBuffer(0)
}
} else {
core.StringsInsertFirstUnique(&fv.Params().FindHist, find, core.SystemSettings.SavedPathsMax)
stringsx.InsertFirstUnique(&fv.Params().FindHist, find, core.SystemSettings.SavedPathsMax)

Check failure on line 408 in code/findpanel.go

View workflow job for this annotation

GitHub Actions / build

undefined: stringsx.InsertFirstUnique
fv.FindAction()
}
})
Expand Down Expand Up @@ -484,7 +485,7 @@ func (fv *FindPanel) makeReplToolbar(p *tree.Plan) {
w.OnChange(func(e events.Event) {
repl := w.CurrentItem.Value.(string)
fv.Params().Replace = repl
core.StringsInsertFirstUnique(&fv.Params().ReplHist, repl, core.SystemSettings.SavedPathsMax)
stringsx.InsertFirstUnique(&fv.Params().ReplHist, repl, core.SystemSettings.SavedPathsMax)

Check failure on line 488 in code/findpanel.go

View workflow job for this annotation

GitHub Actions / build

undefined: stringsx.InsertFirstUnique
})
w.Updater(func() {
w.SetCurrentValue(fv.Params().Replace)
Expand Down
2 changes: 1 addition & 1 deletion code/symbolspanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (st *SymTree) Init() {
s.Gap.X.Em(0.4)
})
tree.AddChildInit(st.Parts, "branch", func(w *core.Switch) {
w.SetIcons(st.IconOpen, st.IconClosed, st.SymNode().GetIcon())
w.SetIconOn(st.IconOpen).SetIconOff(st.IconClosed).SetIconIndeterminate(st.SymNode().GetIcon())
tree.AddChildInit(w, "stack", func(w *core.Frame) {
tree.AddChildInit(w, "icon-indeterminate", func(w *core.Icon) {
w.Styler(func(s *styles.Style) {
Expand Down
4 changes: 2 additions & 2 deletions taskmanager/taskmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func main() {
paused := false

b.OnShow(func(e events.Event) {
tv.SortSliceAction(1)
tv.SortSliceAction(1)
tv.SortColumn(1)

Check failure on line 66 in taskmanager/taskmanager.go

View workflow job for this annotation

GitHub Actions / build

tv.SortColumn undefined (type *core.Table has no field or method SortColumn)
tv.SortColumn(1)

Check failure on line 67 in taskmanager/taskmanager.go

View workflow job for this annotation

GitHub Actions / build

tv.SortColumn undefined (type *core.Table has no field or method SortColumn)
go func() {
for range tick.C {
if paused {
Expand Down

0 comments on commit 170de4f

Please sign in to comment.