Skip to content

Commit

Permalink
do not try to delete when showing devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Milde committed Jan 4, 2021
1 parent 5feb0b6 commit 88aca91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ func (ui *UI) keyPressed(key *tcell.EventKey) *tcell.EventKey {
ui.showHelp()
break
case 'd':
if ui.currentDir == nil {
break
}
if ui.askBeforeDelete {
ui.confirmDeletion()
} else {
Expand Down

0 comments on commit 88aca91

Please sign in to comment.