diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 09:39:59 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-16 09:39:59 +0200 |
| commit | 6ef83d6bdfb6120f9e1fbd145e0bc463196103d1 (patch) | |
| tree | 8eee1f2c29dcbef4ed96b23b08273d42ba0b5d49 /gui/internal/ui/plan.go | |
| parent | 27eb6353030953e91a45b0104bd0567e53622090 (diff) | |
| download | krino-6ef83d6bdfb6120f9e1fbd145e0bc463196103d1.tar.gz krino-6ef83d6bdfb6120f9e1fbd145e0bc463196103d1.zip | |
gui: History and undo tab; each plan and undo is its own run
Diffstat (limited to 'gui/internal/ui/plan.go')
| -rw-r--r-- | gui/internal/ui/plan.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gui/internal/ui/plan.go b/gui/internal/ui/plan.go index 8cbbdfd..fd2f563 100644 --- a/gui/internal/ui/plan.go +++ b/gui/internal/ui/plan.go @@ -263,7 +263,7 @@ func (p *planView) onScan() { var tab *model.PlanTab p.cancelOp = runInBackground(func(ctx context.Context) error { var err error - tab, err = model.Plan(ctx, p.w.sess, d) + tab, err = model.Plan(ctx, p.w.engine, d) return err }, func(err error) { p.setBusy(false) @@ -342,13 +342,7 @@ func (p *planView) selectAll(on bool) { // fillList renders the rows: a checkbox, the file, what would happen, the // rule, and the outcome once applied. func (p *planView) fillList() { - for { - row := p.list.RowAtIndex(0) - if row == nil { - break - } - p.list.Remove(row) - } + clearList(p.list) if p.tab == nil { return } |
