fix #416, hide the Go To Home folder when it is the current path
This commit is contained in:
parent
723f8481c3
commit
935119f998
|
@ -89,6 +89,7 @@ class MainActivity : SimpleActivity() {
|
|||
findItem(R.id.remove_favorite).isVisible = favorites.contains(fragment.currentPath)
|
||||
findItem(R.id.go_to_favorite).isVisible = favorites.isNotEmpty()
|
||||
|
||||
findItem(R.id.go_home).isVisible = fragment.currentPath != config.homeFolder
|
||||
findItem(R.id.set_as_home).isVisible = fragment.currentPath != config.homeFolder
|
||||
|
||||
findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden
|
||||
|
|
|
@ -151,6 +151,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
|
||||
listItems.sort()
|
||||
activity?.runOnUiThread {
|
||||
activity?.invalidateOptionsMenu()
|
||||
addItems(listItems, forceRefresh)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue