StartCleanConfirmation opens the clean confirmation dialog for the selected entry.
()
| 351 | |
| 352 | // StartCleanConfirmation opens the clean confirmation dialog for the selected entry. |
| 353 | func (p *PRDPicker) StartCleanConfirmation() { |
| 354 | entry := p.GetSelectedEntry() |
| 355 | if entry == nil { |
| 356 | return |
| 357 | } |
| 358 | p.cleanConfirmation = &CleanConfirmation{ |
| 359 | EntryName: entry.Name, |
| 360 | Branch: entry.Branch, |
| 361 | WorktreeDir: p.worktreeDisplayPath(*entry), |
| 362 | SelectedIdx: 0, |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | // CancelCleanConfirmation closes the clean confirmation dialog. |
| 367 | func (p *PRDPicker) CancelCleanConfirmation() { |