mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
show loadDB menuitem only when nothing's selected
This commit is contained in:
parent
45ace48490
commit
923ac6db98
1 changed files with 2 additions and 1 deletions
|
@ -672,7 +672,8 @@ public class GamesList extends XWExpandableListActivity
|
||||||
|| XWPrefs.getDebugEnabled( this );
|
|| XWPrefs.getDebugEnabled( this );
|
||||||
showItemsIf( DEBUG_ITEMS, menu, nothingSelected && showDbg );
|
showItemsIf( DEBUG_ITEMS, menu, nothingSelected && showDbg );
|
||||||
Utils.setItemVisible( menu, R.id.games_menu_loaddb,
|
Utils.setItemVisible( menu, R.id.games_menu_loaddb,
|
||||||
showDbg && DBUtils.gameDBExists( this ) );
|
showDbg && nothingSelected &&
|
||||||
|
DBUtils.gameDBExists( this ) );
|
||||||
|
|
||||||
showItemsIf( NOSEL_ITEMS, menu, nothingSelected );
|
showItemsIf( NOSEL_ITEMS, menu, nothingSelected );
|
||||||
showItemsIf( ONEGAME_ITEMS, menu, 1 == nGamesSelected );
|
showItemsIf( ONEGAME_ITEMS, menu, 1 == nGamesSelected );
|
||||||
|
|
Loading…
Add table
Reference in a new issue