Skip to content

Commit

Permalink
Allow to enter empty folders
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-kryvenko committed Sep 15, 2024
1 parent 12df6ed commit e7f3f08
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,11 @@ func main() {
panic("Failed to find currently selected menu item!")
}

newChilds := menuItems.GetChilds(selected)
if len(newChilds) > 0 {
oldMenuItem := currentMenuItem
currentMenuItem = selected
oldMenuItem := currentMenuItem
currentMenuItem = selected

reloadMenu(oldMenuItem)
currentMenuItem.OnSelectedFunc()
}
reloadMenu(oldMenuItem)
currentMenuItem.OnSelectedFunc()
updateKeysLine()
})

Expand Down

0 comments on commit e7f3f08

Please sign in to comment.