Skip to content

Commit

Permalink
lets show Temporarily show excluded, even if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed Jun 6, 2022
1 parent 8d6615c commit 0e0a3e5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
menu.findItem(R.id.temporarily_show_hidden).isVisible = (!isRPlus() || isExternalStorageManager()) && !config.shouldShowHidden
menu.findItem(R.id.stop_showing_hidden).isVisible = (!isRPlus() || isExternalStorageManager()) && config.temporarilyShowHidden

menu.findItem(R.id.temporarily_show_excluded).isVisible =
!menu.findItem(R.id.temporarily_show_hidden).isVisible && !config.temporarilyShowExcluded && config.excludedFolders.isNotEmpty()
menu.findItem(R.id.temporarily_show_excluded).isVisible = !menu.findItem(R.id.temporarily_show_hidden).isVisible && !config.temporarilyShowExcluded
menu.findItem(R.id.stop_showing_excluded).isVisible = !menu.findItem(R.id.temporarily_show_hidden).isVisible && config.temporarilyShowExcluded

updateMenuItemColors(menu)
Expand Down

0 comments on commit 0e0a3e5

Please sign in to comment.