mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
always show load-saved-games menuitem if file present
You can't create the file naively, but want it to be easy to use if it's present.
This commit is contained in:
parent
2c3d0dd52a
commit
c329b1bab4
1 changed files with 3 additions and 1 deletions
|
@ -1532,6 +1532,8 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
int msgID = DBUtils.saveDB( m_activity )
|
||||
? R.string.db_store_done : R.string.db_store_failed;
|
||||
showToast( msgID );
|
||||
} else {
|
||||
Assert.failDbg();
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -1641,7 +1643,7 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
|| XWPrefs.getDebugEnabled( m_activity );
|
||||
showItemsIf( DEBUG_ITEMS, menu, nothingSelected && showDbg );
|
||||
Utils.setItemVisible( menu, R.id.games_menu_loaddb,
|
||||
showDbg && nothingSelected &&
|
||||
nothingSelected &&
|
||||
DBUtils.gameDBExists( m_activity ) );
|
||||
|
||||
showItemsIf( NOSEL_ITEMS, menu, nothingSelected );
|
||||
|
|
Loading…
Add table
Reference in a new issue