mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 08:19:18 +00:00
fix(analyze): improve deletion safety and UI clarity
- Update UI status to 'Moving to Trash...' for clarity - Use os.Lstat instead of os.Stat to correctly handle broken symlinks during deletion checks
This commit is contained in:
@@ -515,7 +515,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
if m.deleting && m.deleteCount != nil {
|
||||
count := atomic.LoadInt64(m.deleteCount)
|
||||
if count > 0 {
|
||||
m.status = fmt.Sprintf("Deleting... %s items removed", formatNumber(count))
|
||||
m.status = fmt.Sprintf("Moving to Trash... %s items", formatNumber(count))
|
||||
}
|
||||
}
|
||||
return m, tickCmd()
|
||||
|
||||
Reference in New Issue
Block a user